A simple demo showcasing interactive custom push notification UI that has several custom UI:
- Video Player using XCDYoutubeKit
- Star Rating control using Cosmos
- A plain UITextView
- Several UIButton
- Xcode 11.4
- Clone and run the project from simulator
- Use the provided APNS file in the project to drag and drop to target simulator
- Replace the app id using your own app id
- Set the value of
Simulator Target Bundler
key in the apns file to your app id - Open the notification preview
Make sure the extension of the file is apns (not .JSON)
{
"aps" : {
"alert" : {
"title" : "A new trailer has arrived for you",
"body" : "Fast and Furious F9 Official Trailer"
},
"category" : "testNotificationCategory",
"sound": "bingbong.aiff",
"badge": 3,
},
"videoId" : "Kopyc23VfSw",
"description": "Release date: 05-21-2020",
"Simulator Target Bundle": "com.alfianlosari.apnspushsimulate"
}