The Device.LocalNotification object allows you to show a notification to the user either immediately or at a later time.
The difference between this and Push Notification is that with LocalNotification the message is originated by the mobile app, whereas with Push Notification, the server is the one originating a message.
Setting Notification Icons in Android:
Each local notification in Android takes a small and a large icon. You can set the notification Icons in Android like this in Activity:
Showing a message immediately:
Showing a message for future display:
If you need the ability to cancel a previously scheduled notification, then you can use another overload which takes an ID for the notification. You can then use the Cancel method to achieve that.
await Device.LocalNotification.Schedule("some title", "some body", someDateTime, );
Later on if needed:
await Device.LocalNotification.Cancel(notificationToCancel);