concept remote notification in category ios
appears as: remote notifications, remote notification

This is an excerpt from Manning's book iOS Development with Swift.
Receiving remote notifications
A database subscription is how your app can be notified of any changes to the database. Your app is notified of these changes via remote notifications. To add subscriptions to your app, you need to follow three steps:
Add remote notifications to your app.
If you’re interested in running your app in the background to begin downloading any new content as soon as your app receives a notification, you should also turn on the Background Modes capability, and check Remote notifications.
Next, you need to register to receive remote notifications. Because your app only needs to do this once, this is commonly added to the didFinishLaunching-WithOptions method in the AppDelegate. This will request remote notifications to be sent to your app if it’s running. If you want alerts, sounds, or badges displayed on the app’s icon when a remote notification arrives and your app is either in the background or not running, you need to register additional notification settings:application.registerForRemoteNotifications()But be aware that requesting any of these additional notification types requires specific permission from the user that the user could decide to reject, crippling your app’s ability to stay up to date (see figure 12.10).application.registerUserNotificationSettings( UIUserNotificationSettings( types: [.alert, .badge, .sound], categories: nil))