Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Added delegate method for tracking when prompt gets shown #77

Merged
merged 1 commit into from

2 participants

@Drewsmits

This delegate method is useful if you want to know when the prompt is shown. I use it for building Mixpanel funnels, so I can find out what percentage of people that get shown the prompt actually end up reviewing the app. From there, I can fine tune the settings for when/how the prompt gets shown to get the best chance at getting a good review. Maybe others will find it useful as well.

Thanks iRate, it's really useful!

@nicklockwood nicklockwood merged commit a020888 into nicklockwood:master
@Drewsmits Drewsmits deleted the Drewsmits:did-prompt-delegate branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 11 additions and 2 deletions.
  1. +6 −0 iRate/iRate.h
  2. +5 −2 iRate/iRate.m
View
6 iRate/iRate.h
@@ -74,6 +74,12 @@ iRateErrorCode;
@protocol iRateDelegate <NSObject>
@optional
+/**
+ * Useful if you use event tracking to track what percentage of users see the prompt and then go
+ * to the app store. This can help you fine tune the circumstances around when/how you show the prompt.
+ */
+- (void)iRateDidPromptForRating;
+
- (void)iRateCouldNotConnectToAppStore:(NSError *)error;
- (void)iRateDidDetectAppUpdate;
- (BOOL)iRateShouldPromptForRating;
View
7 iRate/iRate.m
@@ -716,7 +716,6 @@ - (void)promptForRating
self.visibleAlert = alert;
[self.visibleAlert show];
-
#else
//only show when main window is available
@@ -743,7 +742,11 @@ - (void)promptForRating
contextInfo:nil];
#endif
-
+
+ // Let delegate know that you prompted for a rating
+ if ([self.delegate respondsToSelector:@selector(iRateDidPromptForRating)]) {
+ [self.delegate iRateDidPromptForRating];
+ }
}
}
Something went wrong with that request. Please try again.