iOS 10 Notification Content Extension not loading
Despite what I read elsewhere on stackoverflow and online, expanding the push notification did not work on an iPhone 5 and IOS 10. I borrowed an iPhone 6+ and my code worked fine.
Not able to debug notificaton content extension in ios 10 notification
The following steps pointed here worked for me:
After running the app that contains the extension,
- Set your breakpoint in the extension
- Select Debug / Attach to Process by PID or name
- Enter the name of the extension target
- Trigger the push notification
- Breakpoints in extensions take forever to trigger. BE PATIENT, eventually your breakpoint will be hit
You will have to do this every time you restart your app via Xcode.
Notification Content Extension is not appearing for multiple category name?
Just need to make the UNNotificationExtensionCategory as an Array
rather than String
in the info.plist
of Notification Content Extension target.
Notification Service Extension Not working
Finally I was able to resolve the issue. I am not sure what was causing the issue but after some experiments I realised that not only my service extension but all other installed app's service extension was not working and when sending the push payload with "mutable-content: 1, Notification was not displayed. After rebooting the device it started working fine. I was using iPhone 6s.
Related Topics
Selectively Remove and Delete Objects from a Nsmutablearray in Swift
Swift Repl: How to Save/Load the Repl State? (A.K.A. Suspend/Resume, Snapshot, Clone)
Classes in Swift Files Inside Folder References Not Seen by Xcode 10's Compiler
Tap Gesture Not Working as Expected When Added to Uiview in Collectionview Cell
How to Stop/Cancel Playsoundfilenamed in Swift
Cast Cgfloat to Int in Extension Binaryfloatingpoint
How to Disable "Save to Files" in iOS 11
Metal Kernels Not Behaving Properly on the New MACbook Pro (Late 2016) Gpus
Navigationview Bar Material Invisible on iOS 15
Sktexture Nearest Filtering Mode Doesn't Work (Making Pixel Art)
Swiftui View and Uihostingcontroller in Uiscrollview Breaks Scrolling
Why Are Uiscreen.Bounds Incorrect in iOS11
Argument of '#Selector' Does Not Refer to an '@Objc' Method, Property or Initializer
How to Trigger Xcode's 'Update to Latest Package Versions' from Command Line