Xamarin.forms runs in the background

I am new to the Xamarin platform. I am developing an application for all three major platforms (WP, iOS, Android) using Xamarin.forms. How to synchronize data with my server in the background → I need something similar to the Android service. I want to sync data even when the user navigates to another application screen. It would be great if I could continue to synchronize data, even when the user leaves the application.

thanks

+6
source share
2 answers

This is the only solution I found http://arteksoftware.com/backgrounding-with-xamarin-forms/

in a few words: You cannot abstract background tasks in Xamarin.Forms, because iOS, Android, and WP work differently. You must use the MessagingCenter to send and receive data from specific implementations on each platform.

+6
source
+1
source

Source: https://habr.com/ru/post/983816/


All Articles