Multiple scenarios with Push Notification in iOS
Published in
4 min readOct 22, 2016
Here are my notes for working with Push Notification, updated for iOS 9
How to register
Register to receive push notification
registerForRemoteNotificationTypes
is deprecated in iOS 8+
Register to alert user through UI
If your app displays alerts, play sounds, or badges its icon, you must call this method during your launch cycle to request permission to alert the user in these ways
You don’t need to wait for registerUserNotificationSettings
to callback before calling registerForRemoteNotifications
When to register
From Registering, Scheduling, and Handling User Notifications
Never cache a device token; always get…