Reputation:
I am developing an example app, with the most important concepts (notifications, consumption of apis, etc.).
I can generate notifications, but I always have to have the application open, even in the background. The idea is that although the application is closed, there is some process that allows me every time interval to execute an action and if it is true, it shows a notification.
For example, most of us use the Facebook, Instragram and Whatsup apps, and these applications, even if they are closed when there is a new message, show us a notification. It is really what I would like to achieve.
If you could help me, I would really appreciate it and thank you for what you have helped me so far.
How could you do this to make it work for Android and IOS?
I thank you very much for your help.
Upvotes: 1
Views: 3941
Reputation: 1474
I guess you are looking for push notifications. Please have a look at the below articles for sending push notifications in Xamarin.
https://xmonkeys360.com/2019/12/08/xamarin-forms-fcm-setup-configuration-part-i/
https://xmonkeys360.com/2019/12/09/fcm-configuration-in-xamarin-forms-part-ii/
The codes inside the button click in the sample demonstrated can be moved to an API call to get it working for what you are looking for.
Hope it helps...
Upvotes: 1