cordova-plugin-app-review
Advanced tools
Comparing version 2.0.0 to 2.0.1
{ | ||
"name": "cordova-plugin-app-review", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Cordova plugin to review app", | ||
@@ -5,0 +5,0 @@ "cordova": { |
@@ -32,3 +32,8 @@ # cordova-plugin-app-review | ||
## Methods | ||
Every method returns a promise that fulfills when a call was successful. | ||
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: | ||
```js | ||
cordova.plugins.AppReview.requestReview().catch(function() { | ||
return cordova.plugins.AppReview.openStoreScreen(); | ||
}); | ||
``` | ||
@@ -41,3 +46,14 @@ ### requestReview() | ||
### openStoreScreen(packageName) | ||
IOS notes: | ||
* Supported iOS 10.3+ only. | ||
* [iOS limits the frequency of displaying The Rating dialog](https://developer.apple.com/design/human-interface-guidelines/ios/system-capabilities/ratings-and-reviews/#system-rating-and-review-prompts). | ||
Android notes: | ||
* **After the account on the device has downloaded the app at least once from the internal test track and is part of the testers list, you can deploy new versions of the app via cordova cli and call `requestReview` in debug mode**. | ||
* 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](https://developer.android.com/guide/playcore/in-app-review#quotas). | ||
### openStoreScreen(_packageName_) | ||
Launches App/Play store page with a review form | ||
@@ -48,8 +64,3 @@ ```js | ||
You can use boilerplate below in most of cases: | ||
```js | ||
cordova.plugins.AppReview.requestReview().catch(() => { | ||
return cordova.plugins.AppReview.openStoreScreen(); | ||
}); | ||
``` | ||
By default current app screen is displayed. Optionally you can pass a package name string to show another app details. | ||
@@ -56,0 +67,0 @@ [npm-url]: https://www.npmjs.com/package/cordova-plugin-app-review |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
12138
70