2

I'm using Appirater for rating my app. Everything is fine, alert shows me message with buttons. But when I tap on button "Rate my app" there's no answer Appirater my app. Alert just disappeared. There's my code in my app delegate:

[Appirater setAppId:@"579808129"];
[Appirater setDaysUntilPrompt:0];
[Appirater setUsesUntilPrompt:2];
[Appirater setTimeBeforeReminding:2];
[Appirater setDebug:YES];
[Appirater appLaunched:YES];

Thx for reply.

Michal Jurník
  • 820
  • 1
  • 8
  • 23
  • Is there any way that Appirater works fine but there's thing of GUI? When I'm starting app I'm downloading some data from web API, and then reloading tableview. Could it be a problem? – Michal Jurník Apr 22 '13 at 14:55

4 Answers4

3

Appirater will not send you to the app store on the simulator unless you are on ios6+. Are you testing on either the ios6+ simulator OR an actual device?

Edwin Iskandar
  • 4,119
  • 1
  • 23
  • 24
  • 1
    I'm testing it on real device with iOS 6. Thx for interest. – Michal Jurník Apr 22 '13 at 14:10
  • ah ok. I would suggest putting a break point in the rateApp method of the Appirater class to see what's going on. – Edwin Iskandar Apr 22 '13 at 14:18
  • I pretty much have the exact code you posted except I have an additional: [Appirater appEnteredForeground:YES]; in the appdelegate's - (void)applicationWillEnterForeground:(UIApplication *)application method. Works perfectly. – Edwin Iskandar Apr 22 '13 at 14:19
  • I have the same code in applicationWillEnterForeground. So when I set the breakpoint in Appirater in RateApp method everything goes fine. I have valid appId, condition respondsToSelector with appiraterWillPresentModalView selector is equal NO, then there's presentViewController with storeViewController. – Michal Jurník Apr 22 '13 at 14:42
  • looking at appirater's code, my next guess would be there's an issue getting the rootViewController. [self getRootViewController] might be returning nil so its not able to present the store view controller. How are you setting up your root vc? – Edwin Iskandar Apr 22 '13 at 15:24
2

Make sure you set your delegate and also subscribe to the delegate from your class with

<@interface MyAppDelegate : UIResponder <UIApplicationDelegate, AppiraterDelegate>{


[Appirater setDelegate:self];
[Appirater setAppId:APPIRATER_APP_ID_HERE];
[Appirater setDaysUntilPrompt:1];
[Appirater setUsesUntilPrompt:10];
[Appirater setSignificantEventsUntilPrompt:-1];
[Appirater setTimeBeforeReminding:2];
[Appirater appLaunched:YES];
[Appirater setDebug:YES];
Mark McCorkle
  • 9,349
  • 2
  • 32
  • 42
1

Add this line to appirater.h

    #define APPIRATER_DEBUG YES

You could see the appirater popup on simulator. But you should use device for rating the app.

Veera Raj
  • 1,562
  • 1
  • 19
  • 40
  • The problem is I'll get the popup overtime when I startup application. It will show the popup everytime when I call [Appirater userDidSignificantEvent:YES]; if the DEBUG is YES. – Bagusflyer Feb 02 '15 at 03:12
-1

I'm using slide menu in my application. And there's problem because I have controller which is support for slide menu like rootViewController, so when I load appirater controller it's controller with menu. So I'm going to change somehow appirater get-root-controller function. Thx for all guys! ;)

Michal Jurník
  • 820
  • 1
  • 8
  • 23