android - 如何触发Apptentive评分提示提醒?

标签 android apptentive

我刚刚将应用程序中的 apptentive 更新为 1.5.0v。当条件为真时,评级提示对话框成功显示,但如果用户点击“稍后提醒我”,评级提示将不再显示。

我用下面的代码显示对话框:

@Override
public void onWindowFocusChanged(boolean hasFocus) {
    super.onWindowFocusChanged(hasFocus);

    if (hasFocus
            && this instanceof SongActivity
            && InternalCache.getCounterApptentiveDialog() >= DOWNLOADS_TO_SHOW_APPTENTIVE) {

        boolean ret = Apptentive.engage(this, "init");
        if (ret) {
            System.out.println("GA-APPtentive");
            GAHelper.getInstance().apptentiveRateDialog(getClassName(),
                    getItemId());
        }
    }

}

是否需要更多信息才能再次显示评级提示对话框?

最佳答案

系统会提醒您根据 Apptentive Rating Prompt 交互设置中的值再次对应用进行评分:

Re-prompted after X days

如果设置为 10 天,您需要在按下“稍后提醒我”后等待 10 天才能再次提示。您可以通过将设备时钟向前移动来模拟这一点。

“提醒”交互只会在您参与其事件时触发。此事件与用于触发评级提示的主事件相同。

Event for reminder interaction

苹果:

[[ATConnect sharedConnection] engage:@"testRatingFlow" fromViewController:self];

安卓:

Apptentive.engage(this, "testRatingFlow").

关于android - 如何触发Apptentive评分提示提醒?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24860570/

相关文章:

ios - Apptentive Message 单元格颜色变化

android - 如何在我的 flutter 项目中实现 flutter Text to Speech

android - 清除 App 升级时的共享首选项

java - 如何将android对象转换为String[]?

android - ionic 框架 : 'ionic resources' generating empty directories with no icon and splash images

ios - 崩溃 : com. apple.spritekit.renderQueue

android - 贴心的回调方法

android - 来自 Android 设备的远程 MySQL 数据库连接

ios - 将库添加到 IOS 应用程序会导致可怕的构建失败