iosios5ios6appirater

Appirater not asking to review


I am installing the Appirater app review library which can be found here: https://github.com/arashpayan/appirater

I set these values in the Appirater.m just to test if it asks me to review:

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;

and I configured my own AppDelegate like this:

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    ....   
    [Appirater appLaunched:YES];

    return YES;
}

- (void)applicationWillEnterForeground:(UIApplication *)application
{
    [Appirater appEnteredForeground:YES];
}

But when I opened the app twice, it didn't ask me to add the review. Would anyone know what could have caused this?

Thanks!


Solution

  • For testing purposes you should set the static BOOL _debug = YES;. Before adding the app to the AppStore make sure you set the appID.