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
- Prefab override popup is cropped/positioned incorrectly when more than one display is used and a higher display Scale is set
- Opening a dropdown on a small screen results in its instant closing when mouse cursor is pressed where the dropdown is going to be opened
- Only "ArgumentNullException: Value cannot be null" is displayed instead of all the actual errors when opening a project with numerous compilation errors
- MultiColumnListView and MultiColumnTreeView do not change selection on first input when focus is set by code
- SerializedProperty.DataEquals is returning false when SerializedProperty.EqualContents return true
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