Customizing Notification Behaviors
The LocalNotification Class object allows for extensive customization of the notification. Please take a look at the following code:
The HasAction property indicates that the user will be redirected to the app if the notification is clicked. You can also specify the RepeatInterval property to schedule notification on a timely basis. ScheduledDate specifies when the notification should be issued for the first time. You can also put specific user informations to be retrieved later when the application is started by providing a Dictionary<string, object>() which will be then invoked later when the application’s Navigated event is triggered.
To cancel a notification, you can use the Guid of the notification and then cancel it.
Cancel All Notifications
To cancel all notifications, you can use the following method.
Notification Settings in iOS
Specifically on the iOS platform, an additional setting is required in the application-level code to enable the notification to work properly. In the AppDelegate class of your iOS project, you need to register the UserNotificationSettings to the application object such as shown below.