cordova-plugin-app-review

Cordova plugin to review app

Usage no npm install needed!

<script type="module">
  import cordovaPluginAppReview from 'https://cdn.skypack.dev/cordova-plugin-app-review';
</script>

README

cordova-plugin-app-review

NPM version NPM downloads PayPal donate Twitter

Index

Supported platforms

  • iOS
  • Android

Installation

$ cordova plugin add cordova-plugin-app-review

Use variable ANDROID_PLAY_CORE_VERSION to override dependency version on Android:

$ cordova plugin add cordova-plugin-app-review --variable ANDROID_PLAY_CORE_VERSION='1.8.+'

Methods

Most of time you can just use a boilerplate below to trigger the inapp review dialog and fallback to app/play store screen when the dialog wasn't displayed:

cordova.plugins.AppReview.requestReview().catch(function() {
   return cordova.plugins.AppReview.openStoreScreen();
});

requestReview()

Launches inapp review dialog.

cordova.plugins.AppReview.requestReview();

IOS notes:

Android notes:

openStoreScreen(packageName)

Launches App/Play store page with a review form

cordova.plugins.AppReview.openStoreScreen();

By default current app screen is displayed. Optionally you can pass a package name string to show another app details.