After following the instructions in this tutorial: http://ionicframework.com/docs/native/app-rate/
Even though I implemented the second method, I encountered the following error:
Uncaught (in promise): TypeError: Cannot read property 'split' of undefined TypeError: Cannot read property 'split' of undefined at Function.Locales.getLocale () at showDialog () at Function.AppRate.promptForRating () at callCordovaPlugin () at at at new t () at tryNativePromise () at getPromise () at wrapPromise ()
By removing the line containing
this.appRate.promptForRating(true);
I am able to avoid triggering the rating prompt, but nothing else seems to break.
The plugin I am utilizing can be found here: https://github.com/pushandplay/cordova-plugin-apprate