Android 如何触发Apptentive rating提示提示?
我刚刚将应用程序中的apptentive更新为1.5.0v。当条件为真时,评级提示对话框将成功显示,但如果用户单击“稍后提醒我”,评级提示将不再显示 我将显示对话框,并显示下一个代码:Android 如何触发Apptentive rating提示提示?,android,apptentive,Android,Apptentive,我刚刚将应用程序中的apptentive更新为1.5.0v。当条件为真时,评级提示对话框将成功显示,但如果用户单击“稍后提醒我”,评级提示将不再显示 我将显示对话框,并显示下一个代码: @Override public void onWindowFocusChanged(boolean hasFocus) { super.onWindowFocusChanged(hasFocus); if (hasFocus && this instan
@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分级提示交互设置中的值再次对应用程序进行分级: 如果设置为10天,则按“以后提醒我”重新提示后需要等待10天。您可以通过向前移动设备时钟来模拟这种情况 “提醒”交互只有在您参与其事件时才会触发。此事件与用于触发评级提示的主事件相同 iOS:
[[ATConnect sharedConnection] engage:@"testRatingFlow" fromViewController:self];
安卓:
Apptentive.engage(this, "testRatingFlow").
看这里:谢谢,我一定是瞎了。我完全错过了。我从没想过你可以移动时钟来测试它。他们可以使用服务器获取当前时间。。。谢谢Apptentive支持离线场景;交互被下载并缓存,然后当该事件发生时,在设备上评估显示交互的标准。所以我们使用设备时钟。