Skip to content

Commit 7af3f09

Browse files
committed
saving push token locally doesn't need privacy consent
* If the app starts up without privacy consent, and later grant it, we never get the push token * Save the push token, this is ok without privacy consent as we don't send it anywhere but keep locally in the SDK.
1 parent 6921ef6 commit 7af3f09

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

iOS_SDK/OneSignalSDK/OneSignalNotifications/OSNotificationsManager.m

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -371,9 +371,6 @@ + (BOOL)registerForAPNsToken {
371371

372372
+ (void)didRegisterForRemoteNotifications:(UIApplication *)app
373373
deviceToken:(NSData *)inDeviceToken {
374-
if ([OSPrivacyConsentController shouldLogMissingPrivacyConsentErrorWithMethodName:nil])
375-
return;
376-
377374
let parsedDeviceToken = [NSString hexStringFromData:inDeviceToken];
378375

379376
[OneSignalLog onesignalLog:ONE_S_LL_INFO message: [NSString stringWithFormat:@"Device Registered with Apple: %@", parsedDeviceToken]];

0 commit comments

Comments
 (0)