我一直在为已发布的应用程序在调试环境中测试 Appirater。我知道在调试模式下从 Xcode 运行时它不会有正确的行为。仍然显示警报(我猜是占位符),表明该工具正在工作。
但是,我没有看到"If you enjoy using %@, would you mind taking a moment to rate it? It won't take more than a minute. Thanks for your support!"
我希望在对话框正文中看到的消息。我只看到应用程序图标、星星和“现在不”按钮。它不应该在其主体旁边显示字符串吗?
我像往常一样通过 Cocoapods 安装了它,并且初始化非常标准:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
// initialize Appirater
[Appirater setAppId:@"XXXXXXXXX"];
[Appirater setDaysUntilPrompt:4];
[Appirater setUsesUntilPrompt:14];
[Appirater setSignificantEventsUntilPrompt:-1];
[Appirater setTimeBeforeReminding:2];
#if DEBUG
[Appirater setDebug:YES];
#else
[Appirater setDebug:NO];
#endif
[Appirater appLaunched:YES];
return [super application:application didFinishLaunchingWithOptions:launchOptions];
}
- (void)applicationWillEnterForeground:(UIApplication *)application {
[super applicationWillEnterForeground:application];
[Appirater appEnteredForeground:YES];
}