@capgo/capacitor-in-app-review

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

Prompt users to submit app store ratings and reviews without leaving your app

原始使用文档
文档目录11 节
  1. ➡️ Get started for free
  2. Key features
  3. Why Capacitor In-App Review?
  4. Documentation
  5. Compatibility
  6. Install
  7. Usage
  8. Platform Guidelines
  9. API
  10. requestReview()
  11. getPluginVersion()

@capgo/capacitor-in-app-review

Ask users for an App Store or Google Play rating without leaving your app, with the official in-app review prompts.

Capgo - Build Capacitor apps with AI, ship updates instantly

Capgo: push fixes to your Capacitor users in minutes, build signed iOS and Android apps without a Mac, and roll back in one click.

➡️ Get started for free

14-day unlimited free trial. No credit card required

🤖 Building with an AI coding agent? Install Capgo skills so Claude Code, Codex, Cursor, Copilot, or Gemini CLI know how to install and use @capgo/capacitor-in-app-review in your Capacitor app: npx skills add Cap-go/capgo-skills. Then ask your agent: "Add @capgo/capacitor-in-app-review to my Capacitor app and wire it up." Agent setup guides · Hosted MCP

@capgo/capacitor-in-app-review for Capacitor apps

Key features

  • One call: requestReview() requests the native review prompt.
  • iOS: uses StoreKit's review request.
  • Android: uses the Google Play In-App Review API.
  • Store rules apply: the OS decides when the prompt is actually shown.
  • Platforms: iOS and Android. On web, requestReview() does nothing.

Why Capacitor In-App Review?

The simplest way to request native app store reviews on both iOS and Android:

  • iOS SKStoreReviewController - Native App Store review dialog
  • Android Play In-App Review API - Native Google Play review flow
  • No redirects - Users stay in your app while reviewing
  • Platform compliant - Follows Apple and Google guidelines automatically

Essential for improving your app's ratings and visibility on the stores.

Documentation

For complete documentation, visit: https://capgo.app/docs/plugins/in-app-review/

Compatibility

Plugin versionCapacitor compatibilityMaintained
v8.*.*v8.*.*✅
v7.*.*v7.*.*On demand
v6.*.*v6.*.*❌
v5.*.*v5.*.*❌

Note: The major version of this plugin follows the major version of Capacitor. Use the version that matches your Capacitor installation (e.g., plugin v8 for Capacitor 8). Only the latest major version is actively maintained.

Install

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

npx skills add https://github.com/cap-go/capacitor-skills --skill capacitor-plugins

Then use the following prompt:

Use the `capacitor-plugins` skill from `cap-go/capacitor-skills` to install the `@capgo/capacitor-in-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 @capgo/capacitor-in-app-review
npx cap sync

Usage

import { CapgoInAppReview } from '@capgo/capacitor-in-app-review';

// Request a review at an appropriate moment in your app
await CapgoInAppReview.requestReview();

Platform Guidelines

Both Apple and Google have strict guidelines about when and how often the review dialog can be shown:

iOS:

  • The system may or may not show the review dialog based on App Store policy
  • You should not call requestReview() in response to a button tap
  • The system automatically limits the display of the prompt to 3 times within a 365-day period

Android:

  • Google Play enforces a quota on how often a user can be shown the review dialog
  • The API might not show the dialog if the quota has been reached
  • The dialog will not be shown in debug builds

API

Capacitor In-App Review Plugin interface for prompting users to submit app store ratings and reviews without leaving the app.

requestReview()

requestReview() => Promise<void>

Request an in-app review from the user.

This method triggers the native in-app review dialog provided by the platform. On iOS, it uses SKStoreReviewController. On Android, it uses the Play In-App Review API.

Important Notes:

  • The review dialog may not be displayed every time this method is called. Both Apple and Google have guidelines that limit how often the prompt can appear.
  • There is no guarantee that the user will see the review prompt.
  • The method resolves successfully even if the dialog was not shown.
  • Do not call this in response to a user action like a button tap. Instead, call it at natural points in your app's user flow.

Since: 1.0.0


getPluginVersion()

getPluginVersion() => Promise<{ version: string; }>

Get the native Capacitor plugin version.

Returns: Promise<{ version: string; }>

Since: 1.0.0


版本与发布记录

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

版本发布日期距今
8.2.9latest2026/10/1525 天前
8.2.82026/10/1327 天前
8.2.72026/10/091 个月前
8.2.52026/10/081 个月前
8.2.62026/10/081 个月前
8.2.42026/09/161 个月前

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

@capgo/capacitor-in-app-review 是什么?

Prompt users to submit app store ratings and reviews without leaving your app

如何安装 @capgo/capacitor-in-app-review?

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

@capgo/capacitor-in-app-review 支持 TypeScript 吗?

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

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

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

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

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

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

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

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

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