How to display local notification in Swift iOS?
Local notifications are similar to remote notifications, where as the local notification will be triggered with in the app it self, but the remote notification will be sent to the app from server.
The following snippet of code provides how to display a locations to the user. In order to display the notification first of all you are required to request the user permissions to send your local notification.
Note: Here the 'trigger' object may be of different types, you can use according to your use case.
Local notifications are similar to remote notifications, where as the local notification will be triggered with in the app it self, but the remote notification will be sent to the app from server.
The following snippet of code provides how to display a locations to the user. In order to display the notification first of all you are required to request the user permissions to send your local notification.
Note: Here the 'trigger' object may be of different types, you can use according to your use case.
0 Comments