Qreact app rate
QReact 是一个易于使用的客户、员工和调研调查软件。您可以将用户的反馈重定向到 qreact,并获取有关您的应用程序的详细信息。有关更多信息,请参阅 网站
使用
步骤 1. 将 QreactRate 添加到您的 pod 文件
target 'MyApp' do
pod 'QreactRate'
end
然后在您的终端中运行 pod install
,或者在 CocoaPods.app 中运行。或者为了进行测试运行,运行以下命令:
pod try QreactRate
步骤 3. 将 Qreact 评分添加到您的视图控制器
仅在一个视图控制器中包含评分就足够了。
let rate = QRate()
rate.show(view: self.view)
对话框的默认条件如下
- 应用启动时间超过 n 天(自安装以来)。默认值为零。通过 setDaysUntilPrompt() 进行更改。
- 应用启动次数超过 n 次。默认值为零。通过 setLaunchesUntilPrompt() 进行更改。
- 如果评分值小于或等于目标级别值,则应用重定向到 qreact。否则,应用将用户重定向到应用商店。默认值为零。通过 setTargetLevel() 进行更改。
- 您需要从 网站 获取令牌以使 qreact 工作。然后通过 setToken() 进行设置。
步骤 4. 自定义对话框
您可以设置描述并自定义取消、评分和永不按钮。
rate.setTitle(title: "My title")
rate.setCancelTitle(cancelTitle: "Custom cancel")
rate.setNeverTitle(neverTitle: "Custom never")
rate.setQreactToken(token: "url token")
rate.setDaysUntilPrompt(daysPrompt: 1)
rate.setLaunchesUntilPrompt(launchesPrompt: 1)
许可
MIT 许可证