跳到主要内容

评分和评论 SDK for React (版本 1.0.0)

一般

RuStore In-app 评论 SDK 鼓励用户评估您的应用程序并在 RuStore 上留下反馈,而无需离开应用程序。

评分和用户反馈场景可以随时在您的应用程序中的用户路径中运行。 用户可以从 1 到 5 评分您的应用程序,并留下反馈。

实施例子

查看 例例应用程序了解如何正确整合反馈SDK。

用户场景例子

img

原則

为了评级和反馈 SDK 能够正常运作,必须满足以下条件:

  • Android 8.0 or later
  • The current version of RuStore is installed on the user's device
  • User is authorized in RuStore
  • App mus be published in RuStore

什么时候请求反馈

使用下面的提示来决定什么时候要求用户评分并留下反馈: (参见下方)

  • 开始这个过程,一旦用户已经使用了您的应用程序很长一段时间。

  • 避免经常开始,因为这会损害您的应用程序的用户体验,并限制使用或SDK评分。

  • 避免使用“Rate App”按钮等行动呼叫,因为用户可能已经达到过程开始限制。

  • 您的应用程序不应该在启动之前或在运行过程中向用户提出任何问题,包括他们的意见(“您喜欢该应用程序吗?”)或预测问题(“您可以给该应用程序5星?”)。

设计建议

使用下面的提示来决定如何整合过程:

  • 显示过程如同,无干预或修改现有设计,包括尺寸,不透明度,形状和其他属性。

  • 不要在上方或进程的侧面添加任何东西。

  • 该过程应在所有层的顶部开放. 开始后不要关闭过程. 该过程在用户的明确行动后会自行关闭。

连接到项目

执行下列命令将包连接到您的项目。

// HTTPS
npm install git+https://git@gitflic.ru/project/rustore/react-native-rustore-review-sdk.git

// SSH
npm install git+ssh://git@gitflic.ru/project/rustore/react-native-rustore-review-sdk.git

与用户评级合作

以用户评分开始

插件必须启动以显示反馈窗口。

RustoreReviewClient.init();

引发In-App评级流

一旦启动,可以查询和显示表格。

try {
const isRequested = await RustoreReviewClient.requestReviewFlow();
if (isRequested) {
await RustoreReviewClient.launchReviewFlow();
}
} catch (err) {
console.log(err);
}

处理错误

错误列表

  • RuStoreNotInstalledException — RuStore is not installed on the user's device;
  • RuStoreOutdatedException — RuStore version installed on the user's device does not support this SDK;
  • RuStoreUserUnauthorizedException — user is not authorized in RuStore;
  • RuStoreRequestLimitReached — not enough time has passed since the process was last shown;
  • RuStoreReviewExists — this user has already rated your app;
  • RuStoreInvalidReviewInfo — problems with ReviewInfo;
  • RuStoreException — basic RuStore error from which other errors are inherited