@capawesome/capacitor-app-review

中文文档
8.1.0发布于 2026/10/05MITTypeScriptESM + CJS零依赖构建来源已验证近 30 天下载 12.8万

Capacitor plugin that allows users to submit app store reviews and ratings on Android and iOS.

原始使用文档
文档目录24 节
  1. Use Cases
  2. Compatibility
  3. Installation
  4. Android
  5. Configuration
  6. Usage
  7. Request an in-app review
  8. Open the app store page
  9. API
  10. openAppStore(...)
  11. requestReview()
  12. Interfaces
  13. Testing
  14. FAQ
  15. Why is the in-app review dialog not showing up?
  16. What is the difference between requestReview and openAppSto…
  17. Do I need to provide an appId ?
  18. How can I test the in-app review functionality?
  19. Which platforms are supported?
  20. Can I use this plugin with Ionic, React, Vue or Angular?
  21. Related Plugins
  22. Newsletter
  23. Changelog
  24. License

Capacitor App Review Plugin

Capacitor plugin that allows users to submit app store reviews and ratings.

Use Cases

The App Review plugin is typically used to collect more app store ratings and reviews, for example:

  • In-app review prompts: Ask for a rating at a positive moment, such as after a completed task, without the user leaving the app.
  • Rate this app button: Open the app store page directly from a button in your settings or about screen.
  • Feedback flows: Route satisfied users from your own feedback dialog to the native review dialog or the app store review page.

Compatibility

Plugin VersionCapacitor VersionStatus
8.x.x>=8.x.xActive support

Installation

You can use our AI-Assisted Setup to install the plugin. Add the Capawesome Skills to your AI tool using the following command:

npx skills add capawesome-team/skills --skill capacitor-plugins

Then use the following prompt:

 Use the `capacitor-plugins` skill from `capawesome-team/skills` to install the `@capawesome/capacitor-app-review` plugin in my project.

If you prefer Manual Setup, install the plugin by running the following commands and follow the platform-specific instructions below:

npm install @capawesome/capacitor-app-review
npx cap sync

Android

Variables

If needed, you can define the following project variable in your app’s variables.gradle file to change the default version of the dependency:

  • $androidPlayReviewVersion version of com.google.android.play:review (default: 2.0.2)

This can be useful if you encounter dependency conflicts with other plugins in your project.

Configuration

No configuration required for this plugin.

Usage

The following examples show how to request an in-app review and open the app store page.

Request an in-app review

Show the native in-app review dialog so the user can rate your app without leaving it. Note that on iOS, review requests are limited to 3 requests per year. Only available on Android, and on iOS 14 and later:

import { AppReview } from '@capawesome/capacitor-app-review';

const requestReview = async () => {
  await AppReview.requestReview();
};

Open the app store page

Open the App Store page for the current app and, if possible, open the dialog to leave a review. On iOS, you can pass the Apple ID of your app via the appId option. Only available on Android and iOS:

import { AppReview } from '@capawesome/capacitor-app-review';

const openAppStore = async () => {
  await AppReview.openAppStore();
};

API

openAppStore(...)

openAppStore(options?: OpenAppStoreOptions | undefined) => Promise<void>

Open the App Store page for the current app and, if possible, open the dialog to leave a review.

Only available on Android and iOS.

ParamType
optionsOpenAppStoreOptions

Since: 6.0.0


requestReview()

requestReview() => Promise<void>

Request an in-app review.

Attention: On iOS, review requests are limited to 3 requests per year.

Only available on Android and iOS (14+).

Since: 6.0.0


Interfaces

OpenAppStoreOptions

PropTypeDescriptionSince
androidStorePackageNamestringThe package name of the store app that should open the app store entry (e.g. com.android.vending for the Google Play Store). If not provided, the system's default handler for market:// links will be used. Only available on Android.8.1.0
appIdstringThe app ID of the app to open in the App Store. On iOS, this is the Apple ID of your app (e.g. 123456789). You can find the ID in the URL of your app store entry (e.g. https://apps.apple.com/app/id123456789). Attention: This option is required on iOS. Only available on iOS.6.0.1

Testing

In order to test the In-App Review functionality, you need to follow the instructions provided by the respective platform:

FAQ

Why is the in-app review dialog not showing up?

The operating system decides whether the review dialog is actually displayed. On iOS, review requests are limited to 3 requests per year, so the dialog may not appear every time you call requestReview(). Both platforms also have special requirements for testing, see the Testing section for the official instructions.

What is the difference between requestReview and openAppStore?

The requestReview() method shows the native in-app review dialog, so the user can rate your app without leaving it. The openAppStore(...) method opens the App Store page for the current app and, if possible, opens the dialog to leave a review there. Use requestReview() for gentle prompts and openAppStore(...) for an explicit "Rate this app" button.

Do I need to provide an appId?

Only on iOS, where the appId option of openAppStore(...) is the Apple ID of your app (e.g. 123456789). You can find the ID in the URL of your app store entry (e.g. https://apps.apple.com/app/id123456789).

How can I test the in-app review functionality?

You need to follow the instructions provided by the respective platform, since in-app reviews behave differently in development and production environments. The official testing guides for Android and iOS are linked in the Testing section.

Which platforms are supported?

The plugin supports Android and iOS. The requestReview() method requires iOS 14 or later, and the openAppStore(...) method is available on Android and iOS.

Can I use this plugin with Ionic, React, Vue or Angular?

Yes, the plugin is framework-agnostic. It works in any Capacitor app regardless of the web framework, including Ionic with Angular, React, or Vue, as well as plain JavaScript projects.

  • App Update: Assist your users with native app updates.
  • Badge: Access and update the badge number of the app icon.
  • Install Referrer: Read install attribution data from the Play Install Referrer and Apple Ad Services.

Newsletter

Stay up to date with the latest news and updates about the Capawesome, Capacitor, and Ionic ecosystem by subscribing to our Capawesome Newsletter.

Changelog

See CHANGELOG.md.

License

See LICENSE.

版本与发布记录

@capawesome/capacitor-app-review 共发布 9 个版本,首次发布于 2024/11/25;过去 12 个月发布了 5 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
8.1.0latest2026/10/051 个月前
8.0.22026/09/022 个月前
8.0.12026/02/198 个月前
8.0.02025/12/1710 个月前
7.0.0-dev.1765885034dev2025/12/1610 个月前
7.0.12025/02/011.8 年前

关于 @capawesome/capacitor-app-review 的常见问题

@capawesome/capacitor-app-review 是什么?

Capacitor plugin that allows users to submit app store reviews and ratings on Android and iOS.

如何安装 @capawesome/capacitor-app-review?

在项目目录运行 npm install @capawesome/capacitor-app-review,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:@capacitor/core(>=8.0.0)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@capawesome/capacitor-app-review 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@capawesome/capacitor-app-review 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@capawesome/capacitor-app-review 可以商用吗?

@capawesome/capacitor-app-review 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@capawesome/capacitor-app-review 的下载量有多少?

根据 npm 官方下载统计,@capawesome/capacitor-app-review 在 2026/10/09 – 2026/11/07 这 30 天内被下载 128,141 次,日均约 4,271 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@capawesome/capacitor-app-review 还在维护吗?

最新版本 8.1.0 发布于 2026/10/05(1 个月前);至今共发布 9 个版本,其中过去 12 个月发布了 5 个;首次发布于 2024/11/25。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。