How do I get push notifications in Swift?
To register to receive push notifications via Apple Push Service you have to call a registerForRemoteNotifications() method of UIApplication . If registration succeeds, the app calls your app delegate object's application:didRegisterForRemoteNotificationsWithDeviceToken: method and passes it a device token.
Can iOS simulator receive push notifications?
Yes, that's true. I always wondered if I can send a Push Notification on iOS simulator instead getting a real device while developing applications. Simulator supports simulating remote push notifications, including background content fetch notifications.