thudugala / Plugin.LocalNotification

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

The notification is not working when the app is closed. How we can rectify the issue? #452

Closed anoopkrishnan123 closed 8 months ago

anoopkrishnan123 commented 9 months ago

The notification is not working when the app is closed. How we can rectify the issue?

thudugala commented 9 months ago

@anoopkrishnan123 can you please attach a sample project?

anoopkrishnan123 commented 9 months ago

Hi sir

This is the repo

https://github.com/jfversluis/XFLocalNotifications

thudugala commented 9 months ago

@anoopkrishnan123 this is a very old example. please follow https://github.com/thudugala/Plugin.LocalNotification/wiki/1.-Usage-10.0.0--.Net-MAUI

phamquoctuan1 commented 8 months ago

hi Mr.@thudugala I have tried this example for xamarins forms. but still cannot receive notification when the app is closed. could you please help me to check this?

anoopkrishnan123 commented 8 months ago

hi Mr.@thudugala I have tried this example for xamarins forms. but still cannot receive notification when the app is closed. could you please help me to check this?

Hi, I resolved my issue. Create a foreground service and this will work even when the app is closed.