我正在安装 Appirater 应用程序审查库,可以在这里找到: https ://github.com/arashpayan/appirater
我在 Appirater.m 中设置这些值只是为了测试它是否要求我查看:
static NSString *_appId;
static double _daysUntilPrompt = 30;
static NSInteger _usesUntilPrompt = 2;
static NSInteger _significantEventsUntilPrompt = -1;
static double _timeBeforeReminding = 1;
static BOOL _debug = NO;
static id<AppiraterDelegate> _delegate;
static BOOL _usesAnimation = TRUE;
static UIStatusBarStyle _statusBarStyle;
static BOOL _modalOpen = false;
我像这样配置了我自己的 AppDelegate:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
....
[Appirater appLaunched:YES];
return YES;
}
- (void)applicationWillEnterForeground:(UIApplication *)application
{
[Appirater appEnteredForeground:YES];
}
但是当我打开应用程序两次时,它并没有要求我添加评论。有人知道是什么原因造成的吗?
谢谢!