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
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
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