Hello there!
I am facing problems with doze mode while i try to send data to my servers.
I have developed an app that sends data regularly to servers: everything works except when Doze Mode starts.
The service is started in foreground mode and while the local computations of the service works correctly, when doze mode is enabled the service stops/freezes when i call Job.Download2, for example with the following code:
Probably the OS doesn't allow to connect to internet while in Doze mode but i need to know if Job.Success is True or False but no result or exception is rised during doze mode.
How can i deal with this problem?
Thanks in advance!
I am facing problems with doze mode while i try to send data to my servers.
I have developed an app that sends data regularly to servers: everything works except when Doze Mode starts.
The service is started in foreground mode and while the local computations of the service works correctly, when doze mode is enabled the service stops/freezes when i call Job.Download2, for example with the following code:
B4X:
Job.Download2(URL, Array As String("a", a, "b", b))
Wait For (Job) JobDone(Job As HttpJob)
....
Probably the OS doesn't allow to connect to internet while in Doze mode but i need to know if Job.Success is True or False but no result or exception is rised during doze mode.
How can i deal with this problem?
Thanks in advance!