App Rate

Improve this doc

$ ionic plugin add cordova-plugin-apprate

Repo: https://github.com/pushandplay/cordova-plugin-apprate

The AppRate plugin makes it easy to prompt the user to rate your app, either now, later, or never.

Requires Cordova plugin: cordova-plugin-apprate. For more info, please see the AppRate plugin docs.

Supported platforms

Usage

import { AppRate } from 'ionic-native';

 AppRate.preferences.storeAppURL = {
   ios: '<my_app_id>',
   android: 'market://details?id=<package_name>',
 };

AppRate.promptForRating(false);

Static Members

preferences

Configure various settings for the Rating View. See table below for options

promptForRating(immediately)

Prompts the user for rating

Param Type Details
immediately boolean

Show the rating prompt immediately.

AppRatePreferences

Param Type Details
useLanguage
(optional)
string

Custom BCP 47 language tag

displayAppName
(optional)
string

Custom application title

promptAgainForEachNewVersion
(optional)
boolean

Show dialog again when application version will be updated. Defaults to true

usesUntilPrompt
(optional)
number

count of runs of application before dialog will be displayed. Defaults to 3

openStoreInApp
(optional)
boolean

leave app or no when application page opened in app store (now supported only for iOS). Defaults to false

useCustomRateDialog
(optional)
boolean

use custom view for rate dialog. Defaults to false

customLocale
(optional)
any

Custom locale object

callbacks
(optional)
AppRateCallbacks

Callbacks for events

storeAppURL
(optional)
AppRateStoreAppUrls

App Store URLS

AppRateStoreAppUrls

Param Type Details
ios
(optional)
string

application id in AppStore

android
(optional)
string

application URL in GooglePlay

blackberry
(optional)
string

application URL in AppWorld

windows8
(optional)
string

application URL in WindowsStore

AppRateCallbacks

Param Type Details
onButtonClicked
(optional)
Function

call back function. called when user clicked on rate-dialog buttons

onRateDialogShow
(optional)
Function

call back function. called when rate-dialog showing

API

Native

General