iOS 10 don't call Notification Service Extension
Check your deployment target on Service Extension.
I had deployment target set to 10.2 when testing on device with 10.1 and extension wasn't called until I changed it.
Another issue might be debugging.. In order to make it work You need to attach Service Extension Process. In Xcode menu Debug > Attach To Process > Name of your extension
Run service extension as the Target instead of the app. Then it will ask for which app you have run service extension, then select your app and it will send the notification.
Make sure the deployment target of the service extension is less that your physical device's OS version.
Ensure payload contains 'mutable-content: 1'
{"aps" : { "alert" : { "title" : "Introduction To Notification", "subtitle" : "Session 707", "body" : "New Notification Look Amazing" }, "sound" : "default", "category" : "message", "badge" : 1, "mutable-content": 1 }, "attachment-url": "https://api.buienradar.nl/Image/1.0/RadarMapNL"}
- Don't add
content-available
flag inaps
or if you've added then make sure it's set to0
.
---------------------------------------- if nothing works, Restart your device --------------------------------------
I was getting crazy. Finally I realized that I had the deployment target
of Notification Service Extension
was 10.3
(my phone too). I changed to 10.2
and it works perfectly