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?
Asked
Active
Viewed 8,690 times
2
-
every extension and service requires app bundle id only. provisioning profile is only for installing app and related extension thanks – vaibby Jun 19 '18 at 11:32
2 Answers
2
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) {
}

Ravish Kumar
- 239
- 2
- 12
-
Many Thanks Ravish for the confirmation! will make separate profiles and check out. – Jay T Jun 19 '18 at 10:12
-
Is there any rule that the profile names of the extensions should match the profile name of apps profile? – Jay T Jun 19 '18 at 12:11
-
I am getting this error: -> error: Embedded binary's bundle identifier is not prefixed with the parent app's bundle identifier. – Jay T Jun 19 '18 at 13:14
-
Target->General-->Embedded Binaries delete the older and select the new this was how i solved this problem – Ravish Kumar Jun 19 '18 at 13:26
-
What is the lowest iOS version that supports Rich Notifications?, As if I need to support iOS 9 too, how to handle it? – Jay T Jun 22 '18 at 09:03
-
iOS 10 rich notifications will come to devices without 3D Touch. You can follow below link.https://mobisoftinfotech.com/resources/mguide/ios-10-rich-notifications-tutorial/ – Ravish Kumar Jun 22 '18 at 10:07
-
is these necessary to generate new app id in apple developer account ? like" (app bundle id).Content" – kajal Nov 13 '18 at 07:01
-
The bundle identifier of your notification service has to be prefixed like: com.YourCompany.YourApp.NotificationService while your app identifier is com.YourCompany.YourApp – Kazuya Gosho Sep 20 '19 at 02:33
0
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.
{
"aps": {
"alert": {
"title": "test title",
"body": "test message"
},
"mutable-content": 1
},
and more...
}

Ganesh G
- 1,991
- 1
- 24
- 37