iOS 10 Notification Content Extension Not Loading

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



Leave a reply



Submit