Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS 10 Notification Content Extension not loading

I have a bare-bones app to play with push notifications. I have the Notification Service Extension working. I can send a remote notification with an image URL and have it load.

I can't seem to get Notification Content Extension working. I've gone through multiple tutorials and they all say, just create a Notification Content Extension from the target menu and then inside the Notification Content Extensions Info.plist set the

UNNotificationCategory

to some string. Then when you push the notification, inside the "aps" json-block make sure to have category the same as UNNotificationCategory.

When I receive a notification, I try to swipe it down, left or right and nothing really happens. However, the service extension is working great.

I am using an iPhone 5 with ios 10 and XCode 8.0. I read that at one point only devices with 3d touch could view the content extension but that has since changed since xCode 8 is out of beta.

Any ideas? How can I go about debugging this? I've tried running the app with the Notification Extension selected and printing out stuff inside

didReceive

but am not having any luck.

like image 863
George B Avatar asked Nov 26 '22 21:11

George B


1 Answers

Make sure to set the Extension's deployment target to the same as your Application target.

enter image description here

like image 194
choofie Avatar answered Dec 25 '22 11:12

choofie