File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
com.unity.mobile.notifications Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 2
2
3
3
All notable changes to this package will be documented in this file.
4
4
5
+ ## [ Unreleased]
6
+
7
+ ### Fixes:
8
+ - [ iOS] - Fix occasional crash when registering for push notifications.
9
+
5
10
## [ 2.1.0] - 2022-09-23
6
11
7
12
### Changes & Improvements:
Original file line number Diff line number Diff line change @@ -52,13 +52,14 @@ - (void)finishRemoteNotificationRegistration:(UNAuthorizationStatus)status notif
52
52
{
53
53
struct iOSNotificationAuthorizationData authData;
54
54
authData.granted = status == UNAuthorizationStatusAuthorized ;
55
+ authData.error = NULL ;
56
+ authData.deviceToken = NULL ;
55
57
NSString * deviceToken = nil ;
56
58
if (authData.granted )
57
59
{
58
60
deviceToken = [UnityNotificationManager deviceTokenFromNotification: notification];
59
61
authData.deviceToken = [deviceToken UTF8String ];
60
62
}
61
- authData.error = NULL ;
62
63
63
64
[_lock lock ];
64
65
_remoteNotificationsRegistered = status;
You can’t perform that action at this time.
0 commit comments