Signup for the Ionic Newsletter to get the latest news and updates!

  • Kévin

    Hi Thanks for blog post it helps a lot !

    2 things.

    Your method to set preferences doesn’t work like described in the blog post but works from your repo :

    this.appRate.preferences.storeAppURL = {
    ios: ‘849930087’,
    android: ‘market://details?id=com.ionic.viewapp’
    this.appRate.preferences.usesUntilPrompt = 2;
    this.appRate.preferences.customLocale = {
    title: ‘Rate Us… Pretty Please?’,
    message: ‘Without ratings we starve =(‘,
    cancelButtonLabel: ‘Pass’,
    rateButtonLabel: ‘Rate it!’,
    laterButtonLabel: ‘Ask Later’

    the second point is how you call the promptForRating, the one from the blog is broken, the one in the repo works :


  • Hugh Hou

    Is this updated to Ionic RC0?

  • jfbloom22

    For the best chance of high ratings, we should try to avoid interrupting the user experience.

  • Rashid NK

    is it no just taking the user to app page ?

  • superdelta

    Got it working with this guide and ionic 2.
    But what about ionic 3 and 4?
    I always get a Runtime Error „Uncaught (in promise): TypeError: undefined is not an object (evaluating ‘_this.appRate.preferences’)“

    Can someone give me a hint what to change to get apprate running as a provider/service with ionic 3+ ?

    • xiwi

      doing the same now. Did you get this working?

      • superdelta

        It seems working now in my App with ionic 3 after some try and error.
        I remember the main changes i did:
        1) updated AppRate to 1.3.0 (ionic-native/apprate 3.14.0)
        2) in app.module.ts:
        add: import {AppRate} and {RateService}
        add: providers: AppRate, RateService
        3) in rate-service.ts:
        remove: appRate: any = AppRate;
        change: constructor(public platform: Platform, public appRate: AppRate)
        4) when asking for a review in a component
        remove: providers: [RateService]

        • xiwi

          I’m using version 4.3.3.
          If you go to Ionic documentation you don’t need to create your own provider. Is that a different way maybe?

        • xiwi

          Tried this way but still the same: not displaying. Only when I force it to show with the console it displays but with a black background.

        • xiwi

          the console it also says: plugin_not_displayed on the catch