I'm using Appirater and am very excited by the functionality, but unfortunately I can't get it to work. I use the following code in the appDelegate file when the app launches, as per instruction:
[Appirater appLaunched];
I put a breakpoint on that line, and it is indeed getting called, but none of my breakpoints within the Appirater class actually hit at all. I had put a second breakpoint within the appLaunched method within the Appirater.m file and it never hits. Any advice on what might be going on here is appreciated. I tried setting debug to YES, changing the days till prompt to 0, but these should not even matter, since the first method that's supposed to hit within Appirater does not even seem to be doing so.
Yes, I imported Appirater.h
Don't you get a warning that say that above code is deprecated?
Also don't forget you need to initiate it with some defaults values (just random values):
[Appirater setAppId:appID];
[Appirater setDaysUntilPrompt:0;
[Appirater setUsesUntilPrompt:5];
[Appirater setTimeBeforeReminding:0];
[Appirater setUsesAfterReminding:10];
And finally :
[Appirater appLaunched:YES];
I would also implement :
- (void)applicationWillEnterForegroundNotification:(NSNotification *)notification{
[Appirater appEnteredForeground:YES];
}
The pop up will show after setUsesUntilPrompt numbers of times either by coming to foreground or by app launches if you did implement the willEnterForeground notification.