Order the steps
Put the push setup and delivery steps in order.
- The server sends the payload to APNs with a JWT
- Receive the device token in didRegisterForRemoteNotificationsWithDeviceToken
- APNs delivers the notification to the device
- Send the token to your server
- Call registerForRemoteNotifications()
- Ask for notification permission
Hint 1 of 1
Permission comes first.
Choose an answer, then open Show answer below to check it.
Show answer
Answer: F E B D A C
- Ask for notification permission Users must allow alerts, sounds and badges.
- Call registerForRemoteNotifications() The app registers with APNs.
- Receive the device token in didRegisterForRemoteNotificationsWithDeviceToken The token identifies this app on this device.
- Send the token to your server The server needs it to address the push.
- The server sends the payload to APNs with a JWT APNs authenticates the provider.
- APNs delivers the notification to the device The system shows it or wakes the app.