Step 3.2: Notification Extensions
Add Notification Service Extension
Go to File Menu -> New -> Target. Lets call it Sample
![](https://files.readme.io/19f07b0-image.png)
There is no need to activate the scheme for this extension. Cancelling it will make the app scheme as the default while debugging. Do not worry if you have activated this scheme as this can be changed later anytime.
![](https://files.readme.io/50d4420-image.png)
![](https://files.readme.io/ddc4bf3-image.png)
![](https://files.readme.io/39b3f50-image.png)
![](https://files.readme.io/4784d10-image.png)
Adding app groups
Please check your bundle identifier for this extension and add the app group (same group used by the main app target)
Add Notification Content Extension
Go to File -> New -> Target
![](https://files.readme.io/9aeaaf2-image.png)
There is no need to activate this scheme
![](https://files.readme.io/d6f525d-image.png)
![](https://files.readme.io/c74bfbb-image.png)
There is no need to activate the scheme for this extension. Cancelling it will make the app scheme as the default while debugging. Do not worry if you have activated this scheme as this can be changed later anytime.
![](https://files.readme.io/aa69dbb-image.png)
Adding PushSDK Framework
Finally make sure to add the PushSDK Library into the Framework for all targets
Check the same for the two Notification extensions as well
![](https://files.readme.io/ddaa61d-image.png)
Find the PushSDK and click Add
![](https://files.readme.io/8a53c3f-image.png)
Now lets add it to the NotificationContentExtension as well
![](https://files.readme.io/757572b-image.png)
![](https://files.readme.io/2d984d9-image.png)
![](https://files.readme.io/d63214a-image.png)
Checklist
- Add Notification Service Extension
- Add Notification Content Extension
- Enable App groups for those two extensions
- Add PushSDK framework for those two extensions
Updated 4 months ago