Search Issue Tracker
By Design
Votes
0
Found in [Package]
2.3.0
Issue ID
MNB-74
Regression
No
Registration of local notification with image fails when using iOS 13 or lower device
How to reproduce:
1. Download and open the attached project
2. Build and deploy the project to iOS 13 or lower
3. Press the "Register Local Notification" button
Expected outcome: No errors appear in the Xcode console
Actual outcome: "Exception: Invalid attachment file URL
at Unity.Notifications.iOS.iOSNotificationsWrapper.CsAttachmentsToObjc" error appears
Reproducible with: 2021.3.33f1, 2022.3.16f1, 2023.2.3f1, 2023.3.0a19
Reproduced on: iPhone 6S (13.3.1)
Could not reproduce with: iPhone 13 Pro (iOS 16.6.1), iPhone 12 Pro (iOS 14.2.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
- Errors are logged when importing an asset at a path with Firebase
- Entering too big of a number in 2D Renderer Lightmode Tags freezes the Editor
- Crash on GUIManager::DoGUIEvent when focusing on the Game view window on a specific project
- Asset creation in the Project Browser is not always undone/inconsistent when the undo shortcut is pressed right after creating an asset
- JobTempAlloc memory leak warning is thrown when the Player is shut down
Resolution Note:
It is documented, that Url property must be URL to local file, not the file path, hence the file:// prefix is required. Possibly iOS 13+ is more permissive on this and started accepting paths.
See:
https://docs.unity3d.com/Packages/com.unity.mobile.notifications@2.3/api/Unity.Notifications.iOS.iOSNotificationAttachment.Url.html#Unity_Notifications_iOS_iOSNotificationAttachment_Url