Run appwrite init apns in your iOS project and the Appwrite CLI sets up push notifications in one command. It:
- Creates the production and sandbox APNs providers.
- Adds the push entitlement and background mode to your Xcode target.
- Adds an Apple platform for your bundle ID.
- Checks with Apple that your App ID has Push Notifications on.
- Creates the APNs key for you with
--create-key, so you can skip the Apple Developer portal.
The CLI reads the bundle ID, team ID, and key ID from your project, so there's nothing to copy by hand, and you can safely run the command again at any time.
