question

ganeshjagdale-9986 avatar image
0 Votes"
ganeshjagdale-9986 asked JessieZhang-2116 commented

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.

dotnet-xamarin
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

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.

0 Votes 0 ·

1 Answer

JessieZhang-2116 avatar image
0 Votes"
JessieZhang-2116 answered JessieZhang-2116 edited

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.


· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks Jessie,

Your answer gave me some directions to move forward, will definitely check and share my experience

0 Votes 0 ·

Waitting for your good news.

0 Votes 0 ·