thudugala / Plugin.LocalNotification

The local notification plugin provides a way to show local notifications from .Net MAUI and Xamarin Forms apps .
MIT License
425 stars 68 forks source link

Does not work on .NET MAUI 8 #491

Open xarlammm opened 7 months ago

xarlammm commented 7 months ago

I started migrating from xamarin to .net maui 8. Nothing happens when I try to show the notification. Permission is also not asked. If you manually allow notifications to be displayed, it is not displayed. All permissions are in the manifest. The MauiProgram is also connected.

Android 14 .NET MAUI 8 Plugin.LocalNotification 11.1.1

image

thudugala commented 7 months ago

@xarlammm please go through https://github.com/thudugala/Plugin.LocalNotification/wiki/1.-Usage-10.0.0--.Net-MAUI

xarlammm commented 7 months ago

Hello! All these stages were completed, followed this documentation

thudugala commented 7 months ago

@xarlammm can you attach a sample project please?

xarlammm commented 7 months ago

I created a completely new project and followed your documentation. The result is the same. NotificationApp.zip

keikepono commented 6 months ago

I got my .NET 8.0 app working by adding
<uses-permission android:name="android.permission.POST\_NOTIFICATIONS"/> to the Platforms/Android/AndroidManifest.xml file. Once added this allowed the user to choose if they wanted notifications. @xarlammm

erossini commented 5 months ago

@keikepono did you publish your app on Google Play? What is your AndroidManifest.xml? I can't manage the notifications in my app for Android (see this post).

Thank you for any suggestions. Enrico

ivmirx commented 5 months ago

@xarlammm please go through https://github.com/thudugala/Plugin.LocalNotification/wiki/1.-Usage-10.0.0--.Net-MAUI

Hi Elvin, quick question: does the plugin work without MAUI? I've been developing iOS+Android natively and use only ex-Xamarin.Essentials parts of Maui namespaces, but it seems that having the core library is a must nowadays?

Could not find `Microsoft.Maui` referenced by assembly `Plugin.LocalNotification, Version=11.1.3.0, Culture=neutral, PublicKeyToken=null`.
Could not register the assembly 'Plugin.LocalNotification': System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
thudugala commented 4 months ago

@xarlammm please go through https://github.com/thudugala/Plugin.LocalNotification/wiki/1.-Usage-10.0.0--.Net-MAUI

Hi Elvin, quick question: does the plugin work without MAUI? I've been developing iOS+Android natively and use only ex-Xamarin.Essentials parts of Maui namespaces, but it seems that having the core library is a must nowadays?

Could not find `Microsoft.Maui` referenced by assembly `Plugin.LocalNotification, Version=11.1.3.0, Culture=neutral, PublicKeyToken=null`.
Could not register the assembly 'Plugin.LocalNotification': System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.

Yes, look at how the plugin is set natively in Xamarin. do, the same in MAUI native app

https://github.com/thudugala/Plugin.LocalNotification/blob/master/Source/Plugin.LocalNotification/LocalNotificationExtensions.cs

image