Use a feature flag for full APNs vs silent PNs
This commit is contained in:
parent
25903554e9
commit
3c34112e30
|
@ -59,7 +59,9 @@ static NSString *const kURLHostVerifyPrefix = @"verify";
|
|||
|
||||
static NSTimeInterval launchStartedAt;
|
||||
|
||||
// Debug settings
|
||||
static BOOL isInternalTestVersion = NO;
|
||||
static BOOL isUsingFullAPNs = YES;
|
||||
|
||||
@interface AppDelegate () <UNUserNotificationCenterDelegate>
|
||||
|
||||
|
@ -587,9 +589,11 @@ static BOOL isInternalTestVersion = NO;
|
|||
}
|
||||
|
||||
OWSLogInfo(@"Registered for push notifications with token: %@.", deviceToken);
|
||||
//TODO: For normal push notification test
|
||||
[LKPushNotificationManager registerWithToken:deviceToken hexEncodedPublicKey:self.tsAccountManager.localNumber];
|
||||
// [LKPushNotificationManager.shared registerWithToken:deviceToken];
|
||||
if (isUsingFullAPNs) {
|
||||
[LKPushNotificationManager registerWithToken:deviceToken hexEncodedPublicKey:self.tsAccountManager.localNumber];
|
||||
} else {
|
||||
[LKPushNotificationManager registerWithToken:deviceToken];
|
||||
}
|
||||
// [self.pushRegistrationManager didReceiveVanillaPushToken:deviceToken];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue