Need help upgrading to Ionic Framework 4.0? Get assistance with our Enterprise Migration Services EXPLORE NOW

Launch Review

Improve this doc

Assists in leaving user reviews/ratings in the App Stores.

Repo: https://github.com/dpa99c/cordova-launch-review

Installation

  1. Install the Cordova and Ionic Native plugins:
    $ ionic cordova plugin add cordova-launch-review
    $ npm install --save @ionic-native/launch-review@4
    
  2. Add this plugin to your app's module

Supported platforms

Usage

import { LaunchReview } from '@ionic-native/launch-review';

constructor(private launchReview: LaunchReview) { }

...

this.launchReview.launch()
  .then(() => console.log('Successfully launched store app');

if(this.launchReview.isRatingSupported()){
  this.launchReview.rating()
    .then(() => console.log('Successfully launched rating dialog'));
}

Instance Members

launch(appId)

Platforms:Android iOS 

Launches App Store on current platform in order to leave a review for given app.

Param Type Details
appId string

(optional) the platform-specific app ID to use to open the page in the store app. If not specified, the plugin will use the app ID for the app in which the plugin is contained. On Android this is the full package name of the app. For example, for Google Maps: com.google.android.apps.maps On iOS this is the Apple ID of the app. For example, for Google Maps: 585027354

Returns: Promise<void>

rating()

Platforms:iOS 

Invokes the native in-app rating dialog which allows a user to rate your app without needing to open the App Store. Requires iOS 10.3 and above: Calling this on any platform/version other than iOS 10.3+ will result in the error callback. Success callback will be called up to 3 times:

Returns: Promise<string>

isRatingSupported()

Platforms:Android iOS 

Indicates if the current platform/version supports in-app ratings dialog, i.e. calling LaunchReview.rating(). Will return true if current platform is iOS 10.3 or above.

Returns: boolean

API

Native

General