We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe78b8f commit 131d623Copy full SHA for 131d623
com.unity.mobile.notifications/Runtime/iOS/Plugins/UnityNotificationManager.m
@@ -52,13 +52,14 @@ - (void)finishRemoteNotificationRegistration:(UNAuthorizationStatus)status notif
52
{
53
struct iOSNotificationAuthorizationData authData;
54
authData.granted = status == UNAuthorizationStatusAuthorized;
55
+ authData.error = NULL;
56
+ authData.deviceToken = NULL;
57
NSString* deviceToken = nil;
58
if (authData.granted)
59
60
deviceToken = [UnityNotificationManager deviceTokenFromNotification: notification];
61
authData.deviceToken = [deviceToken UTF8String];
62
}
- authData.error = NULL;
63
64
[_lock lock];
65
_remoteNotificationsRegistered = status;
0 commit comments