You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Update] Due to changes in the core operating systems this NuGet and Plugin is no longer supported.
4
4
5
-
A consistent and easy way to show local notifications in Xamarin and Windows apps.
6
-
7
-
### Setup
8
-
* Available on NuGet: [https://www.nuget.org/packages/Xam.Plugins.Notifier/](https://www.nuget.org/packages/Xam.Plugins.Notifier/)
9
-
* Install in your PCL project and platform client projects.
5
+
Notifier provides a consistent and easy way to show local notifications from within a native mobile app with a single line of code. Notifications are handled and displayed natively for each respective platform OS so they will appear in the notification center on iOS, Android and Windows Phone and will display a toast on Windows and Windows Phone.
/// <paramname="id">Id of the scheduled notification you'd like to cancel</param>
51
+
voidCancel(intid);
52
+
```
53
+
54
+
Usage:
55
+
56
+
Notifier.Current.Show("You've got mail", "You have 793 unread messages!");
57
+
58
+
59
+
## Platform Specific Notes
60
+
61
+
Some platforms require some options to be set before it will display notifications.
62
+
63
+
### Windows and Windows Phone
64
+
You must enable notifications in the app manifest by setting the "Toast capable" property to "Yes".
65
+
66
+
### iOS (as of iOS 8)
67
+
You must get permission from the user to allow the app to show local notifications. Details on how to do this are here thanks to [Larry O'Brien](https://twitter.com/lobrien): [http://www.knowing.net/index.php/2014/07/03/local-notifications-in-ios-8-with-xamarin/](http://www.knowing.net/index.php/2014/07/03/local-notifications-in-ios-8-with-xamarin/)
68
+
69
+
### Android
70
+
Currently, if the phone is re-booted then the pending notifications are not sent, you should save them out to settings and re-send on re-boot.
71
+
72
+
#### Notification Icon on Android
73
+
You can set the notification Icon by setting the following property from inside your Android project:
<description>The local notification plugin provides a simple, cross-platform way to show local notifications from within native mobile applications. Works with Xamarin.Android, Xamarin.iOS (Classic and Unified), Windows 8.1, Windows Phone 8.1, and Windows Phone Silverlight 8.1.</description>
14
+
<summary>Cross platform plugin to show local notifications.</summary>
0 commit comments