|
|
@ -67,15 +67,15 @@
|
|
|
|
OWSTableSection *strategySection = [OWSTableSection new];
|
|
|
|
OWSTableSection *strategySection = [OWSTableSection new];
|
|
|
|
strategySection.headerTitle = NSLocalizedString(@"Notification Strategy", @"");
|
|
|
|
strategySection.headerTitle = NSLocalizedString(@"Notification Strategy", @"");
|
|
|
|
[strategySection addItem:[OWSTableItem switchItemWithText:NSLocalizedString(@"Use APNs", @"")
|
|
|
|
[strategySection addItem:[OWSTableItem switchItemWithText:NSLocalizedString(@"Use APNs", @"")
|
|
|
|
accessibilityIdentifier:ACCESSIBILITY_IDENTIFIER_WITH_NAME(self, @"push_notification_strategy")
|
|
|
|
accessibilityIdentifier:ACCESSIBILITY_IDENTIFIER_WITH_NAME(self, @"push_notification_strategy")
|
|
|
|
isOnBlock:^{
|
|
|
|
isOnBlock:^{
|
|
|
|
return [NSUserDefaults.standardUserDefaults boolForKey:@"isUsingFullAPNs"];
|
|
|
|
return [NSUserDefaults.standardUserDefaults boolForKey:@"isUsingFullAPNs"];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
isEnabledBlock:^{
|
|
|
|
isEnabledBlock:^{
|
|
|
|
return YES;
|
|
|
|
return YES;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
target:weakSelf
|
|
|
|
target:weakSelf
|
|
|
|
selector:@selector(didToggleAPNsSwitch:)]];
|
|
|
|
selector:@selector(didToggleAPNsSwitch:)]];
|
|
|
|
strategySection.footerTitle = NSLocalizedString(@"Session will use the Apple Push Notification Service to receive push notifications. You’ll be notified of new messages reliably and immediately. Using APNs means that this device will communicate directly with Apple’s servers to retrieve push notifications, which will expose your IP address to Apple. Your messages will still be onion-routed and end-to-end encrypted, so the contents of your messages will remain completely private.", @"");
|
|
|
|
strategySection.footerTitle = NSLocalizedString(@"Session will use the Apple Push Notification Service to receive push notifications. You’ll be notified of new messages reliably and immediately. Using APNs means that this device will communicate directly with Apple’s servers to retrieve push notifications, which will expose your IP address to Apple. Your messages will still be onion-routed and end-to-end encrypted, so the contents of your messages will remain completely private.", @"");
|
|
|
|
[contents addSection:strategySection];
|
|
|
|
[contents addSection:strategySection];
|
|
|
|
|
|
|
|
|
|
|
|