I have noticed that background task not running until i open app when it closed completely , is this the default behavior or i did thing wrong?
i init work manager in main function then in home screen i call periodic function.
main(){
///init work manager
}
initState(){
// start background process
//background function contains fetch location and HTTP request
}