Adding Rich Push Notifications
Send rich push notificaitons to your iOS app
1. Creating a service extension
The first step is to add a service extension to your application.
File > New > Target in Xcode and select Notification Service Extension.
2. Setting up the notification service extension
Set the Deployment Target of your Notification Service Extension to the minimum version accepted by Xcode
When Xcode prompts you to activate the new scheme, answer Cancel to keep Xcode building and debugging your app instead of the extension:
3. Integrating rich push notifications
To add Manually:
paste this code to into the NotificationServiceExtension file:
4. Creating a rich notification and Testing
To test, you will need a real device, and access to its firebase device token
Then go to the template page and create a push notification
Be sure to add an image
After you have designed a notification, select test, and find the test person with the aforementioned device token, and hit send