mirror of https://github.com/oxen-io/session-ios
Adding rating code
We’ve noticed that most people went to the App Store to leave really bad reviews of the app and it is severely affecting our discoverability. We will ask for a rating if we see you’ve been using the app for some time. If you rate the app or decline to rate, that’s fine. We will never bug you again!pull/1/head
parent
2d5d8db721
commit
0090030f3d
@ -1 +1 @@
|
||||
Subproject commit c43d25e93c1b3d25a866e618ff1b45f3a940f332
|
||||
Subproject commit 1101c9b712ac694978812826833de1177e71a7a4
|
@ -0,0 +1,15 @@
|
||||
//
|
||||
// AppStoreRating.h
|
||||
// Signal
|
||||
//
|
||||
// Created by Frederic Jacobs on 23/08/15.
|
||||
// Copyright (c) 2015 Open Whisper Systems. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface AppStoreRating : NSObject
|
||||
|
||||
+ (void)setupRatingLibrary;
|
||||
|
||||
@end
|
@ -0,0 +1,28 @@
|
||||
//
|
||||
// AppStoreRating.m
|
||||
// Signal
|
||||
//
|
||||
// Created by Frederic Jacobs on 23/08/15.
|
||||
// Copyright (c) 2015 Open Whisper Systems. All rights reserved.
|
||||
//
|
||||
|
||||
#import "AppStoreRating.h"
|
||||
#import <iRate/iRate.h>
|
||||
|
||||
@implementation AppStoreRating
|
||||
|
||||
+ (void)setupRatingLibrary
|
||||
{
|
||||
iRate *rate = [iRate sharedInstance];
|
||||
rate.appStoreID = 874139669;
|
||||
rate.daysUntilPrompt = 15;
|
||||
rate.usesUntilPrompt = 10;
|
||||
rate.remindPeriod = 20;
|
||||
rate.onlyPromptIfLatestVersion = YES;
|
||||
rate.promptForNewVersionIfUserRated = NO;
|
||||
rate.messageTitle = NSLocalizedString(@"RATING_TITLE", nil);
|
||||
rate.message = NSLocalizedString(@"RATING_MSG", nil);
|
||||
rate.rateButtonLabel = NSLocalizedString(@"RATING_RATE", nil);
|
||||
}
|
||||
|
||||
@end
|
Binary file not shown.
Loading…
Reference in New Issue