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
0
G Ganesh
On
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...
}
Related Questions in SWIFT
- Overlapping UICollectionView in storyboard
- Cannot pod spec lint because of undeclared type errors
- Swift code with multiple NSDateFormatter - optimization
- How do I add multiple in app purchases in Swift Spritekit?
- cellForRowAtIndexPath and prepareForSegue return different label colors
- Getting this message in my console in xcode "Ignoring restoreCompletedTransactionsWithApplicationUsername: because already restoring transactions"?
- Change background of an Accessory View in a UITableViewCell
- fade in an bounce animation subview
- Create a PFObject and PFRelation after PFUser Sign Up
- Swift 2 - Pattern matching in "if"
- How do I give inputs through NSURL
- How do I add custom cells to TableView in Swift?
- UIWebView not loading URL in simulator
- Compiler complains that 'Expression resolved to unused function' when removing index in array of functions
- Cast from 'Int?' to unrelated type 'NSNumber' always fails
Related Questions in XCODE
- Using Storyboard Reference
- Getting this message in my console in xcode "Ignoring restoreCompletedTransactionsWithApplicationUsername: because already restoring transactions"?
- Error when creating UIImage
- fade in an bounce animation subview
- How to delete static library ".a" file from xcode project?
- Error in main.storyboard
- Is the compiler Xcode uses to produce Assembly code a bad compiler?
- Using paths bonded to a XCode project to be shared
- How to set the time of Local notification in app to random between two times? (swift)
- "Invalid Signature, code object not signed at all" error
- Alarming memory increase with custom segue
- Display both alertTitle and AlertBody on a custom WatchKit notification
- How to make a CocoaPods project work on OS X El Capitan & Xcode 7 Beta?
- Cannot use CTRL+Drag for making a button action in Xcode?
- Labels properties changing in Xcode
Related Questions in PROVISIONING-PROFILE
- iOS: None of the valid provisioning profiles allowed the specific entitlements
- UUID instead of UDID while adding device
- iOS Enterprise App Distribution – Provisioning Profile expired
- How to avoid rebuild ipa file in enterprise distribution due to expired profiles
- Does a provisioning profiles expiry date depend on the linked certificates date?
- iOS Development build suddenly not downloading on a device who's UDID is registered
- Beta from Crashlytics fail to install build on testers' devices
- iOS Enterprise distribution - Steps?
- No matching provisioning profiles
- No matching profisioning profiles found error ios xcode 6.3.2
- ERROR ITMS-90174: "Missing Provisioning Profile - iOS Apps must contain a provisioning profile in a file named embedded.mobileprovision."
- App validation error, CloudKit entitlements error
- How to build an iOS binary without setting an Apple Developer account and team?
- App Installation failed - The application does not have a valid signature on build
- iOS//Provisioning Profiles//Old Data&New Data
Related Questions in IOS-APP-EXTENSION
- iOS widget not working on few iPhone5S
- Pods project with App Extension started failing to build
- Today extension: syncing data with container app
- How to access keyWindow in share extension in ios?
- Exception when fetching parse.com user data in iOS 8 Today Extension
- Change 1Password App extension navigation bar title color
- Is there way to get list of installed app on device, which is able to share and receive text data
- How to get the state of share extension in iOS?
- "Invalid info.plist value" when uploading iOS 9 app extension
- App Group in Today's Extension Swift 3.0
- App icon of Share extension is not updating in device even with updating app icon
- Disable all the app (share/action) extensions and configure required extensions ios
- iOS Build app extension base on existing app. How to avoid code duplication?
- How to differentiate the Home Screen widget tap and Force touch widget tab?
- textDocumentProxy insertText is not working in custom keyboard extension
Related Questions in RICH-NOTIFICATIONS
- Rich Notification in swift. Image not show in notification
- XMPP Delegate Methods are not calling from Notification Service Extension in iOS swift
- The code signature version is no longer supported after adding Notification Service Extension Xcode 13.3.1
- Chrome extension maximum message length
- IOS Rich notification didReceiveNotificationRequest is not fired
- iOS Rich notifications from FCM in foreground using Notification Service Extension
- Is there a way to target the opener page of a Chrome desktop notification?
- Chrome Rich notifications not working in legacy packed app
- Check Some modification Logs in Notitifcationservice.m file(notification service extension)
- Chrome Progress Rich Notification Status won't Move Up
- how to stack the notification?
- Notification Service Extension is not working
- How to provide Rich NotificationService(including image icon) to user?
- Notification service extension not called on flutter iOS
- chrome rich notifications change timeout to close
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?

Yes you have to use separate provisioning profile for Notification Service Extension and Notification Content Extension. For reference you can use this link.
Service extensions:
A Service extension’s entry point class UNNotificationServiceExtension
It overrides 2 methods:
Content extension’s entry point class is UIViewController and it implements protocol