Display Prompt When Tapping a Button

200 views
Skip to first unread message

VAlexander

unread,
Mar 12, 2014, 10:49:50 PM3/12/14
to appi...@googlegroups.com
I have done the following in my app delegate:

[Appirater setDelegate:self];
[Appirater setUsesAnimation:YES];
[Appirater setAppId:@"MYID"];
[Appirater setDaysUntilPrompt:3];
[Appirater setUsesUntilPrompt:5];
[Appirater setSignificantEventsUntilPrompt:-1];
[Appirater setTimeBeforeReminding:2];
[Appirater setOpenInAppStore:NO];
[Appirater setDebug:NO];
[Appirater appLaunched:YES];


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


And in my view controller inside my IBAction I wrote:

[Appirater userDidSignificantEvent:YES];

But I'm getting no prompt on tap. The button action is being called, and when I set debug to YES it works, but when I set it to NO, it just doesnt. Any advice?

I want it to appear after the app has been used 5 times and 3 days have gone by, but also when that button is tapped. Thank you!

Win Ly

unread,
Mar 23, 2014, 12:12:38 AM3/23/14
to appi...@googlegroups.com
Hi,
I'm having asimilar problem.
In debug mode Appirater works fine.
But when I turn off debug mode, it doesn't display the alert message, even if I set the Days and Uses until prompt to zero.

    [Appirater setAppId:@"myID"];

    [Appirater setDaysUntilPrompt:0]; //number of days wait

    [Appirater setUsesUntilPrompt:0.0001]; //number of times wait

    [Appirater setSignificantEventsUntilPrompt:-1];

    [Appirater setTimeBeforeReminding:0];// number of days to wait for reminding later

    [Appirater setDebug:NO]; //for debuggn only, change to YES when release

    [Appirater appLaunched:YES];


However, if i call forceShowPrompt:YES, then the alert will show (tryToShowPrompt won't work either).



Thanks in advance!

Reply all
Reply to author
Forward
0 new messages