Appirater not asking to review

1.5k Views Asked by At

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!

5

There are 5 best solutions below

3
On BEST ANSWER

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

0
On

Just set [Appirater setDebug:YES]; and it will you ask every time you launch your app. No need to change Appirater.m or Appirater.h

Do not forget to set it back to NO before uploading to the AppStore

0
On

Change _daysUntilPrompt to a lower value like 1 or 0.

0
On

Change this for testing in Appirator.h :

#define APPIRATER_DEBUG YES
1
On

Appirater will do the following check to determine if a prompt is displayed:

 if (secondsSinceLaunch > secondsUntilPrompt 
 && launchCount > LAUNCHES_UNTIL_PROMPT)

Both conditions must be met. The number of days and the number of launches.

If you set your DAYS_UNTIL_PROMPT to 0, it will work. Alternately, if you set APPIRATER_DEBUG to 1, the prompt will always be shown.

Also note that I have a fork of appirater that has been enhanced quite a bit with improved code and new functionality such as memory usage improvements, localisation in several languages, and additional options for when to display the rating request dialog. Here you can check that.