@ccervantesb/cordova-plugin-review-app
v1.0.0
Published
This plugin allows review your app.
Maintainers
Readme
cordova-plugin-review-app
This plugin allows get the application information from the app.
Installation
Install plugin from npm:
npm i @ccervantesb/cordova-plugin-review-appOr install the latest master version from GitHub:
cordova plugin add https://github.com/cesarcervantesb/cordova-plugin-review-appSupported Platforms
- Android
- In-app reviews require your app to be published in Play Store.
- Google Play enforces a quota on how often a user can be shown the review dialog. show more
- iOS
- Supported iOS 10.3+ only.
Usage
The plugin creates the object cordova.plugins.reviewApp and is accessible after the deviceready event has been fired.
document.addEventListener('deviceready', function () {
// cordova-plugin-review-app is now available
}, false);Available methods
openStore- Launches store (Play Store / App Store) for current application id.
cordova.plugins.reviewApp.openStore();Example
cordova.plugins.reviewApp.openStore(function (){
// Success callback
}, function (error) {
// Error callback
});requestReview- Launches in-app review dialog.
cordova.plugins.reviewApp.requestReview();Example
cordova.plugins.reviewApp.requestReview(function (){
// Success callback
}, function (error) {
// Error callback
});