Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Running background task with interval in Xamarin forms even if the app is not active

$
0
0

Hello, everyone. I am a newbie to Xamarin but not to C#. I just started learning Xamarin Forms today and join the community today as well. Now I am trying to develop a simple application using Xamarin Forms. But I am a Native Android Java Developer. Now I am stuck. I would like to run a background task like Broadcast receiver in Android with an interval, then inside that task, I like to push notifications or do some operations. I want that task to be running in the background even if the user is not interacting with the application. I mean even if the app is close. I saw some solutions online but those are asking to modify the project individually (IOS and Android projects in my case). But the reason I am using Xamarin form is I just want to only focus on one project to produce two apps for different platforms. So, how can I implement that feature by only modifying the main project (Xamarin Form), please? If it is not possible, please show me the best solution that I can follow please.


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>