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
- "Objects are trying to be loaded during a domain backup." errors on entering Playmode
- Transform Node does not have outputs when it is created
- Changing the Default Icon does not change the executable's icon when re-building the project
- Texture is stored upside down when using Blit
- [OpenGLES][XR] Zooming in on the camera's URP opaque texture causes "double vision" on Quest in OpenGLES3
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