简体   繁体   中英

Appirater Usage

I have added Appirater to one of my projects. Appirater is ARC enabled out of box, as far as I can see, but I had the issue with the delegate, I had to synthesize it myself. That is not the problem though.

This is the code I added into my app delegate:

[Appirater setAppId:@"0101010101"];
    [Appirater setDaysUntilPrompt:-1];
    [Appirater setUsesUntilPrompt:-1];
    [Appirater setTimeBeforeReminding:2];
    [Appirater setDebug:YES];
    [Appirater appLaunched:YES];

For what I can see, after I pressed rate the app, Appirater should not ask for rating the app any more, there is no functions in it to set that user pressed "Rate". Pressing remind me later button should disable the Appirater alert for 2 days (see setTimeBeforeReminding:) but that does not work neither. Everytime I re-open the app, It just prompts me to rate my app, no matter what I click. Any ideas on how to use this class or a walkthrough?

Note: Using current version of appirater which is update 23 days ago, also has a class AppiraterDelegate, which I have not used.

if you set debug to YES it will ask to rate everytime you open the app. Set it to [Appirater setDebug:NO];

Make sure to test on real device not simulator and do what @jcesar suggested which is set [Appirater setDebug:NO];

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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