Local Notifications Plugin for Xamarin and Windows
Simple cross platform plugin to work with mobile local notifications
Android specific You must add this line to application manifest within < application > tag:
<receiver android:name="localnotifications.plugin.ScheduledAlarmHandler" android:enabled="true"></receiver>
Supports
Call CrossLocalNotifications.CreateLocalNotifier from any project or PCL to gain access to APIs.
User LocalNotification class to parameterize notification.
Creating Notification
var notification = new LocalNotification
{
Text = "Hello from Plugin",
Title = "Notification Plugin",
Id = 2,
NotifyTime = DateTime.Now
};
Sending notification
var notifier = CrossLocalNotifications.CreateLocalNotifier();
notifier.Notify(notification)
Canceling notification
notifier.Cancel(notification.Id)