UNNotificationAttachment URL must have a common file extension to be recognized
| Originator: | nate | ||
| Number: | rdar://27708555 | Date Originated: | 04-Aug-2016 03:28 PM |
| Status: | Open | Resolved: | |
| Product: | iOS SDK | Product Version: | |
| Classification: | Reproducible: |
Summary: UNNotificationAttachment URL must have a common file extension to be recognized, regardless of the value of the UNNotificationAttachmentOptionsTypeHintKey. Steps to Reproduce: Annotated sample code attached. Expected Results: the UNNotificationAttachmentOptionsTypeHintKey should override need to use a specific file extension Actual Results: UNError.attachmentUnrecognizedType is thrown, when the file name ends in "tmp" but UNNotificationAttachmentOptionsTypeHintKey is set to "image/jpeg" Version: iOS 10.0 Beta 4 Notes: Configuration: iPhone 6 Plus Attachments: 'NotificationService.swift' was successfully uploaded.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!