I am trying to implement Rich notifications in my iOS application and while using Notification Service Extension and Notification Content Extension, post running my app I am getting error of same bundle identifier. For these extensions do I need to use separate provisioning profiles? Like one for my code, one for Notification Service Extension and one for Notification Content Extension?
Provisioning profiles for Service Extension and Content Extension
9.2k Views Asked by Jay T At
2
There are 2 best solutions below
8

Yes you have to use separate provisioning profile for Notification Service Extension and Notification Content Extension. For reference you can use this link.
https://mobisoftinfotech.com/resources/mguide/ios-10-rich-notifications-tutorial/
Service extensions:
A Service extension’s entry point class UNNotificationServiceExtension
It overrides 2 methods:
func didReceive(_ request: UNNotificationRequest, withContentHandler contentHandler: @escaping (UNNotificationContent) -> Void) {
}
func serviceExtensionTimeWillExpire() {
}
Content extension’s entry point class is UIViewController and it implements protocol
func didReceive(_ notification: UNNotification) {
}
Yes, you need to create the separate certificates (dev and release) for Notification Service Extension.
Also you should include the mutable-content key and set true in your payload as shown below.