Forum Xamarin.Forms
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

xamarin background upload in android

vasilytserejvasilytserej USMember ✭✭

hello
I have an App which uploads pictures to a server.
A year ago if you wanted to upload a picture I created a task which encapsulated a httpclient postasync
the only issue is that when I put the app to background the upload tasks where cancelled.
I developed a version using background services. It took me some time but it worked.
Today I tested with the old version and now android do not cancel the upload httpclient post when going to background.
Did something changed in android that I am not aware.
Thanks in advance

Best Answer

Answers

  • vasilytserejvasilytserej USMember ✭✭
    Yes the previous app works now on latest os versions.
    When I started xamarin in 2.4 httprequests were cancelled when going to background.
  • vasilytserejvasilytserej USMember ✭✭
    I accepted your question as correct answer by mistake
Sign In or Register to comment.