Home > Mobile >  Complete Task After Quit (Prevent Stopping Task when app Quit)
Complete Task After Quit (Prevent Stopping Task when app Quit)

Time:01-12

I want yo make a task which complete running after Quit the app. Like complete Downloading Task. I don't find active way or method for Xamarin form mobile app. Any Help?

CodePudding user response:

All You Want to Do is You Want your Task Run in Background so Even if you Quit the App the Task continues to Run is it okie ?

This Type of Task Are Known As Services(Back ground Tasks,or Background Services) in .net And Xamarin PlatForms I Think You will Find This link Helpfull See this : enter link description here

in this Way if you are running Some Downoading Task then it will not be killed After App is Getting quit or onSleep and will keep running in Back Ground Until Its Completed Or Any Error Generate ..

CodePudding user response:

First, if you want to make the app still be running after quitting, It can not be realized.

Second, if you want to make the app quit after finishing the task you can refer to the How to terminate a Xamarin application?

  • Related