I currently have a local notification firing from a specified time in OS10 using the UNUserNotificationCenter
.
I'm trying to figure out how to open a specific page in my app when the user taps on the local notification.
Anyone how to do this I'm really new to programming for iOS in C# and I'm sure its not that uncommon of a thing to do.
get the singleton instance of UNUserNotificationCenter
receive events from UNUserNotificationCenter
WillPresentNotification: Called to deliver a notification to an application that is running in the foreground. If you want to show notification in the foreground, refer to the code , it will display sound and alert content.
DidReceiveNotificationResponse :Called after the user selects an action from a notification from the app. When yo tap the notification and enter the app, this function will be called. Then open a specific page which in your first post.
Requests notifcation authorization with the specified options, and processes the result of the request.Requesting authorization is required of all apps that support the delivery of notifications. The first time your app requests authorization, the user is alerted and given an opportunity to deny or grant that authorization.
Returns the notification settings object for the app, processing it before it is returned.
System-generated object that contains the parts of a notification, including text, sound, badge and launch images, attachments, and so on. It is shown in the notification.
Triggers the delivery of a notification at a specified day or time, either once or repeatedly. It will send the notification at 8:00 on Monday in my code.
Contains the content and trigger for a notification that the developer requests from UNUserNotificationCenter..
Adds the local notification that is specified by request, with the specified completionHandler.
There are still many functions and Classes I don't mentioned . e.g,
UNNotificationAttachment(Audio, video, or images that are displayed with notifications.) UNNotificationAction (An action that can be performed in response to a notification.) UNNotificationCategory (Implements a group of actions and options that comprise a category of notifications.)
But your requirement can be meet with my code. More information
UNUserNotificationCenter in xamarin
UNUserNotificationCenter in app doc