question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not working with Ionic 3

See original GitHub issue

I followed this tutorial: http://ionicframework.com/docs/native/app-rate/

I’m using the second approach but I get this error:

Uncaught (in promise): TypeError: Cannot read property 'split' of undefined
TypeError: Cannot read property 'split' of undefined
    at Function.Locales.getLocale (http://192.168.1.2:8100/plugins/cordova-plugin-apprate/www/locales.js:53:74)
    at showDialog (http://192.168.1.2:8100/plugins/cordova-plugin-apprate/www/AppRate.js:91:29)
    at Function.AppRate.promptForRating (http://192.168.1.2:8100/plugins/cordova-plugin-apprate/www/AppRate.js:203:7)
    at callCordovaPlugin (http://192.168.1.2:8100/build/vendor.js:77234:43)
    at http://192.168.1.2:8100/build/vendor.js:77260:28
    at http://192.168.1.2:8100/build/vendor.js:58635:17
    at new t (http://192.168.1.2:8100/build/polyfills.js:3:20886)
    at tryNativePromise (http://192.168.1.2:8100/build/vendor.js:58634:20)
    at getPromise (http://192.168.1.2:8100/build/vendor.js:58642:12)
    at wrapPromise (http://192.168.1.2:8100/build/vendor.js:77243:78)

If I remove this line I don’t trigger the rating but nothing else fails: this.appRate.promptForRating(true);

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
erperejildocommented, Nov 11, 2017

Ok, working with this tutorial: https://ionicacademy.com/rate-my-app-ionic/

0reactions
DioNNiScommented, Jul 8, 2018

This issue happens when customLocale not provided. Be careful assigning AppRate.preferences = {…}. It’s overwriting default preferences. It’s better to extend object…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Simple Ionic 3 App Not Working on Android Device
Simple Ionic 3 App Not Working on Android Device · Remove the cordova-plugin-ionic-webview that you are using. · Install version 1.2. · Remove...
Read more >
Building not working ionic 3 - webpack error - Stack Overflow
I was trying to add webpack, karma and jasmine to an ionic 3 app and after all the configurations the console gave me...
Read more >
The 9 Most Common Mistakes That Ionic Developers Make
However, over time, the best practices and tooling for Ionic have not progressed in the same way. As a result, the number of...
Read more >
executeScript not working in ionic 3 · Issue #421 - GitHub
I am using this plugin in ionic 3. ... loadstop event is working fine, but executeScript doesn't work. sage. The text was updated...
Read more >
How I migrated from Ionic 3 — Lessons learned and my ...
Migration from Ionic 3 to Ionic 4 isn't hard if you will use Angular 6 and you know this already. The main question...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found