Search Issue Tracker
Fixed in 1.3.0
Votes
1
Found in [Package]
1.0.4-preview9
Issue ID
1223357
Regression
No
[iOS] Device token returns null after successful notifications authorisation request
How to reproduce:
1. Open the attached DeviceTokenIssue.zip project
2. Build for iOS and deploy the Xcode project to the iOS device
3. Press 'Allow' when you see the system popup on the device
4. Inspect the Xcode Console
Actual: [MobileNotifications] DeviceToken is NULL
Reproducible with: 2018.4.19f1, 2019.3.5f1, 2020.1.1b1, 2020.2.0a2
Reproducible with:
- iPhone 7 (iOS 12.3.1)
- iPhone 6 (13.3.1)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- The Scene View becomes gray and "NullReferenceException" errors are thrown when attaching the Unity Editor process to RenderDoc
- Memory usage rapidly rises when changing colors in the color wheel
- Physically Based Sky's Horizon and Zenith Tint Color Selection Bars don't have immediate access to color pickers
- EmptyAdditionalLightShadowmapTexture leaks from memory when URP quality level is changed using QualitySettings.SetQualityLevel
- Referenced ScriptableObject field does not get updated and cannot be set to "None" when there are no Objects of that type
sergioabril
Apr 17, 2020 20:49
Any update on this? I had to end up using the "UnityEngine.iOS.NotificationServices.RegisterForNotifications()" call instead to properly retrieve the token.