Reputation: 61
Can we use two different setSignificantEventsUntilPrompt
within one application?Say for example I have two category(awesome,better)named button.I need to show appRating AFTER FIRST SUCCESSFUL HIT of AWESOME
button or 2 SUCCESSFUL HITS OF BETTER
button.Is this possible?
Upvotes: 0
Views: 299
Reputation: 17
You can modify Appirater as per your need. One way of achieving what you are looking for is by creating another routine in Appirater class that increments the significant event by 'X' number
Here is how I do.
In Appirater.h, Declare a new routine for tracking more significant events
In Appirater.m Modify the following
Modify - (void)incrementSignificantEventCount to accept a parameter - (void)incrementSignificantEventCount:(int)count
Inside incrementSignificantEventCount, replace sigEventCount++; with sigEventCount = sigEventCount + count;
Modify incrementSignificantEventAndRate:(BOOL)canPromptForRating to accept another parameter -(void)incrementSignificantEventAndRate:(BOOL)canPromptForRating withCount:(int)count
Inside incrementSignificantEventAndRate, replace [self incrementSignificantEventCount]; with [self incrementSignificantEventCount:count];
Replace userDidSignificantEvent: routine with the following code
Define new routine to track more significant event
Now you will be able to use methods,
[Appirater userDidSignificantEvent:YES] to increment by 1
[Appirater userDidMoreSignificantEvent:YES] to increment by 2
Upvotes: 1