1 | /**
|
2 | * @name LaunchReview
|
3 | * @description
|
4 | *
|
5 | * This launches the native store app in order for the user to leave a review.
|
6 | * On Android, the plugin opens the the app's storepage in the Play Store where the user can leave a review by pressing the stars to give a rating.
|
7 | * On iOS, the plugin opens the app's storepage in the App Store and focuses the Review tab, where the user can leave a review by pressing "Write a review".
|
8 | *
|
9 | * @usage
|
10 | * ```
|
11 | * import { LaunchReview } from 'ionic-native';
|
12 | *
|
13 | * const appId: string = 'yourAppId';
|
14 | * LaunchReview.launch(appId)
|
15 | * .then(() => console.log('Successfully launched store app');
|
16 | * ```
|
17 | */
|
18 | export declare class LaunchReview {
|
19 | /**
|
20 | * Launch store app using given app ID
|
21 | * @returns {Promise<void>}
|
22 | */
|
23 | static launch(appId: string): Promise<void>;
|
24 | }
|