SARate is a library to get positive app reviews on the AppStore. SARate is a subclass of iRate.
- iOS 5+,
- ARC.
CocoaPods: pod "SARate"
or
- Drop
SARate
files into your project. - Add
QuartzCore.framework
,MessageUI.framework
to your project.
Add the SARate configuration code in your AppDelegate's initialize method:
#import "SARate.h"
+ (void)initialize
{
//configure
[SARate sharedInstance].daysUntilPrompt = 5;
[SARate sharedInstance].usesUntilPrompt = 5;
[SARate sharedInstance].remindPeriod = 30;
[SARate sharedInstance].email = @"[email protected]";
}
#import "SARate.h"
+ (void)initialize
{
//configure
[SARate sharedInstance].daysUntilPrompt = 5;
[SARate sharedInstance].usesUntilPrompt = 5;
[SARate sharedInstance].remindPeriod = 30;
[SARate sharedInstance].promptForNewVersionIfUserRated = YES;
//enable preview mode
[SARate sharedInstance].previewMode = YES;
[SARate sharedInstance].email = @"[email protected]";
// 4 and 5 stars
[SARate sharedInstance].minAppStoreRaiting = 4;
[SARate sharedInstance].emailSubject = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleDisplayName"];
[SARate sharedInstance].emailText = @"Disadvantages: ";
[SARate sharedInstance].headerLabelText = @"Like app?";
[SARate sharedInstance].descriptionLabelText = @"Touch the star to rate.";
[SARate sharedInstance].rateButtonLabelText = @"Rate";
[SARate sharedInstance].cancelButtonLabelText = @"Not Now";
[SARate sharedInstance].setRaitingAlertTitle = @"Rate";
[SARate sharedInstance].setRaitingAlertMessage = @"Touch the star to rate.";
[SARate sharedInstance].appstoreRaitingAlertTitle = @"Write a review on the AppStore";
[SARate sharedInstance].appstoreRaitingAlertMessage = @"Would you mind taking a moment to rate it on the AppStore? It won’t take more than a minute. Thanks for your support!";
[SARate sharedInstance].appstoreRaitingCancel = @"Cancel";
[SARate sharedInstance].appstoreRaitingButton = @"Rate It Now";
[SARate sharedInstance].disadvantagesAlertTitle = @"Disadvantages";
[SARate sharedInstance].disadvantagesAlertMessage = @"Please specify the deficiencies in the application. We will try to fix it!";
}
Andrei Solovjev
SARate is available under the MIT license. See the LICENSE file for more info.