AppRate fails with newNullResponse

I added AppRate and keep getting a blank screen when I select Rate it now.
The id I added is from an existing iOS app. I am simply following the example of the tutorial and replaced it with my existing app id-token.

AppRate.preferences.storeAppURL = {ios : '1234'};

Your request produced an error. [newNullRequest]

Any ideas?

Can you debug a bit further? Whats the full code you are using?
Are you wrapping this in platform.ready?
Are you catching the rejected promise? We need more information in order to help

1 Like

platform.ready - have to check again later where I put it. Thanks! That might be it but we’ll see.
I tried debugging the plugin in XCode but it never hit the ObjC code yesterday. Could be it is out of platform.ready.

Thanks! It was in fact out of ready, hence the error. Works. Cheers!

@mhartington: Recently installed app rate plugin and as mentioned in ionic-native documentation I have added this code below

AppRate.preferences.storeAppURL = {
        android: 'market://details?id=com.ionic.test'
};

Getting this error:
Uncaught (in promise): TypeError: Cannot set property ‘storeAppURL’ of null TypeError: Cannot set property ‘storeAppURL’ of null at http://localhost:8100/build/main.js:113540:108 at t.invoke (http://localhost:8100/build/polyfills.js:3:9094) at Object.onInvoke (http://localhost:8100/build/main.js:39268:37) at t.invoke (http://localhost:8100/build/polyfills.js:3:9045) at e.run (http://localhost:8100/build/polyfills.js:3:6481) at http://localhost:8100/build/polyfills.js:3:4583 at t.invokeTask (http://localhost:8100/build/polyfills.js:3:9723) at Object.onInvokeTask (http://localhost:8100/build/main.js:39259:37) at t.invokeTask (http://localhost:8100/build/polyfills.js:3:9659) at e.runTask (http://localhost:8100/build/polyfills.js:3:7083)

I saw this plugin for iOS that allows you to do a native review that you could try.

I have same error.
Getting this error:
Uncaught (in promise): TypeError: Cannot set property ‘storeAppURL’ of null TypeError: Cannot set property ‘storeAppURL’ of null at http://localhost:8100/build/main.js:113540:108 at t.invoke (http://localhost:8100/build/polyfills.js:3:9094) at Object.onInvoke (http://localhost:8100/build/main.js:39268:37) at t.invoke (http://localhost:8100/build/polyfills.js:3:9045) at e.run (http://localhost:8100/build/polyfills.js:3:6481) at http://localhost:8100/build/polyfills.js:3:4583 at t.invokeTask (http://localhost:8100/build/polyfills.js:3:9723) at Object.onInvokeTask (http://localhost:8100/build/main.js:39259:37) at t.invokeTask (http://localhost:8100/build/polyfills.js:3:9659) at e.runTask (http://localhost:8100/build/polyfills.js:3:7083)

have you fix this error??

1 Like

I’m also facing the same error.
Has anyone fixed this error/issue??

Anyone got any solution , still facing this issue.

got this solution

if (platform.is('cordova')) {
    this.appRate.preferences.storeAppURL = {
        ios: '1206710447'
    }
}

Use 2nd example:

this.appRate.preferences = {
  usesUntilPrompt: 3,
  storeAppURL: {
   ios: '<app_id>',
   android: 'market://details?id=<package_name>',
   windows: 'ms-windows-store://review/?ProductId=<store_id>'
  }
};