简体   繁体   English

开胃菜不起作用

[英]Appirater doesn't work

I'd like to show Appirater when I click some button. 我想在单击某些按钮时显示Appirater。 here is my setting in appdelegate 这是我在appdelegate中的设置

Appirater.setAppId("...")
Appirater.setDaysUntilPrompt(0)
Appirater.setUsesUntilPrompt(0)
Appirater.setTimeBeforeReminding(30)
Appirater.setSignificantEventsUntilPrompt(10)
Appirater.userDidSignificantEvent(true))
Appirater.appLaunched(true)

and then I put below code in my view controller 然后将下面的代码放在我的视图控制器中

Appirater.tryToShowPrompt()

I don't any idea how to call correct method in action. 我不知道如何在操作中调用正确的方法。

You will be able to use forceShowPrompt method. 您将可以使用forceShowPrompt方法。 However by forcing the prompt consider the side effects. 但是,通过强制提示考虑副作用。 By the way if you want to see the Appirater on the debug mode always, you can use Appirater.setDebug(true) method. 顺便说一句,如果您希望始终在调试模式下看到Appirater,则可以使用Appirater.setDebug(true)方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM