Hey guys I am facing a problem that I don't know much what to do. I am developing a Xamarin.Forms application that whenever I am in the battery economy mode it becomes very slow when I leave the app and come in again. It works just fine when the application is open, but when I leave and wait for like 10 seconds and come back it takes around 20 seconds to show the screen for me, then it works fine again. It doesn't happen in the normal battery mode. Also I have a task running in the background with a request to one api every 15 seconds with a timeout of 1 second. This task I am using Device.BeingInvokedOnTheMainThread and a CancellationToken. I did make sure that I was not having duplicates of the thread. Any ideas?
↧