The local notification plugin provides a way to show local notifications from Xamarin.Forms / .Net MAUI apps.
Plugin.LocalNotification
Available on NuGet: https://www.nuget.org/packages/Plugin.LocalNotification-
- Install Version 10.0.0 above
- Install into your project
-
- Install Version 11.0.0 below
- Install into your platform-specific projects (iOS/Android), and any .NET Standard 2.0/2.1 projects required for your app.
Feature | Xamarin.iOS | Xamarin.Android | net8.0-ios (>= 11) | net8.0-android (>= 11) |
---|---|---|---|---|
Build SDK | >= 10 | >= API 31 | >= 16 | >= API 34 |
Supported OS Version | >= 10 | >= API 19 | >= 11 | >= API 21 |
Title | ✅ | ✅ | ✅ | ✅ |
Description | ✅ | ✅ | ✅ | ✅ |
Subtitle | ✅ | ✅ | ✅ | ✅ |
Schedule | ✅ | ✅ | ✅ | ✅ |
Repeat | ✅ | ✅ | ✅ | ✅ |
Custom Sounds | ✅ | ✅ | ✅ | ✅ |
Images | ✅ | ✅ | ✅ | ✅ |
Notification Actions | ✅ | ✅ | ✅ | ✅ |
Clear Delivered Notifications | ✅ | ✅ | ✅ | ✅ |
Get Pending Notifications | ✅ | ✅ | ✅ | ✅ |
Get Delivered Notifications | ✅ | ✅ | ✅ | ✅ |
Location Notifications | ✅ | ✅ | ✅ | ✅ |
In Visual Studio, confirm that SourceLink is enabled. Also, Turn off "Just My Code" since, well, this isn't your code.
https://docs.microsoft.com/en-us/dotnet/standard/library-guidance/sourcelink
Only support iOS and Android for the moment.
Contributions are welcome. Feel free to file issues and pull requests on the repo and they'll be reviewed as time permits.
- Thank you for the Icons by DinosoftLabs and Iconic Hub
- Thank you for the sound file by Notification sounds
- Thank you for the tutorial video by Gerald Versluis