One of the most important things you need to do in your iOS app, is ask the user to rate your app.
This alone will boost your download rate, as users first check what other thought of your app before deciding if they are willing to pay.
Provided is an independent class that automatically checks the last time a rate suggest alert was shown, and knows if one should be displayed.
Supports iOS 6.
Thread safe, uses singleton design pattern.
Adjusted for ARC. If your code is using RC, add a "-fobjc-arc" to RateSuggestService.m compiler flags.
After adding the class to your project, add these lines of code to application:didFinishLaunchingWithOptions:, change the suggest interval to you desired value, in days -
NSString *rateUrl = [NSString stringWithFormat:@"http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?id=%d&pageNumber=0&sortOrdering=1&type=Purple+Software", APP_ID];
[[RateSuggestService sharedService] setSuggestInterval:7];
[[RateSuggestService sharedService] setRateUrl:rateUrl];
[[RateSuggestService sharedService] setAlertTitle:NSLocalizedString(@"Rate MyApp", nil)
body:NSLocalizedString(@"Would you mind taking a moment and rate MyApp?", nil)
buttonYes:NSLocalizedString(@"Yes", nil)
buttonNo:NSLocalizedString(@"No, thanks", nil)];
Then, you want to check if rate suggest is required every time your app becomes active, place this code at applicationDidBecomeActive: -
[[RateSuggestService sharedService] check];
That's it!
Provided example that demonstrate how to use this service, but it's pretty what is shown here above.
Feel free to ask me anything through the issues tab.
Questions & Comments