- You must have a paid Apple developer account, or have access to one
- You will need a real iOS device to test it as push notification only works on physical iOS device
- Select a valid Apple account in the project's Signing Team
- Enable Push Notification in the App Target > Capabilities
- Enable iCloud in the App Target > Capabilities
- Click the Cloudkit Dashboard button shown previously to go the Apple CloudKit Dashboard, or go to https://icloud.developer.apple.com/dashboard/ .
- Open the container for your app
- Select Development > Data
- Select Record Types, Create a new type named Notifications. And add fields named content, subtitle and title. Click Save.
- Build and run the app, and tap allow notifications.
- Go back to Cloudkit Dashboard, select the app container and Development > Data.
- Create a new record on 'Notifications' Type.
See the notification appear on your phone 🎉
After your app went live in App Store, you will need to go to the Production > Data in CloudKit Dashboard to create the Notification. And this notification will go to all the app users (who have allowed push notification)