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
- Addressables Report window UI is broken when opening via Build > New Build > Default Build Script
- Addressables Profiles window UI break when creating a new Variable with a long name
- No character limit when renaming Profile in Addressables Profile window, allowing excessively long names
- Blurry, low quality Active Profile icon used in Addressables Profiles window
- Tree Asset Preview window is not updated after assigning a new Material
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