In xamarin forms is there any plugin to show offline notifications even if app is closed or phone restarted.
In xamarin forms is there any plugin to show offline notifications even if app is closed or phone restarted.
Hi @ganeshjagdale-9986 , I have not heard from you for a couple of days. Please let me know if there is anything that I can help here.
Hello,
Welcome to our Microsoft Q&A platform!
is there any plugin to show offline notifications .
If you want to send notifications offline,you can use Local notifications in Xamarin.Forms to achieve this.
Local notifications are alerts sent by applications installed on a mobile device. Local notifications are often used for features such as:
Calendar events
Reminders
Location-based triggers
Each platform handles the creation, display, and consumption of local notifications differently.
is there any plugin to show offline notifications even if app is closed or phone restarted.
If you want to send notifications offline even if app is closed, in this condition, you can try to use service to achieve this.
But in Android, starting in Android 8.0 (API level 26), an Android application no longer have the ability to run freely in the background. For more details about this, you can refer to Background Execution Limits in Android 8.0:
However you can try to restarted the service once it been finished by a BroadcastReceiver .
The function of BroadcastReceiver is to receive a signal when someone or something kills the service; its role is to restart the service.
For more details, you can check article by enter keywords Creating a never ending background service in Android n your browser.
Though it's Java code, it's easy to understand and convert.
Best Regards,
Jessie Zhang
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Thanks Jessie,
Your answer gave me some directions to move forward, will definitely check and share my experience
7 people are following this question.