in android , what is time out interval for cancel download after WiFi disconnect -
If user start download a file 100 MB , and if his WiFi is disconnect , after some time download is cancelled , and if after some time he get WiFi connectivity then system automatically start remaining download ,so I want information about time interval for cancel download after WiFi disconnect ,and who set this time interval (it is set by application or it is set by android system) ?? please help me .
Related
I'm working on VPN for iOS. And i want to add ability to pause vpn to 5, 15 min and a hour. It means when user for example clicks on pause 15 min vpn disconnected and start connection in 15 min. But i don't understand how to schedule connection task.
I tried to do it with Timer but timer stop working when app in background.
I thought about BGTaskScheduler but how i understand in this case OS decides when start task and i will not be able to guarantee that i will start vpn connection in time.
Also i thought about silent PUSH notifications but i not sure that it is a good solution.
Can anyone suggest how can i solve this task more accurate?
I'm able to schedule and run a BGProcessingTask and it works fine, but only if the device is connected to the external power. I've tried to set requiresExternalPower = false but nothing changes. To be sure my task send an email when it starts so I can monitor it. When I disconnect the power cable the task is not lunched anymore. Is there any solution?
My app is in background, and then i receive a location update. The system wake up my app for a very short time that is enough to store the location.
Now i would like also to send this location to my server, but i m afraid that the network connection can take longer time (especially if not on wifi) and that the system will move back my app in sleeping state before i reach the end of the connection.
So how can i send the location to my server?
I want to send lat and long of device on server with 15 minute time interval even my app is not running in background. Is that Possible or Not.
Background it is possible, but if you kill app then doesn't, Appstore would not allow such app. another thing it will drain device battery as well.
Enable background modes.
I made a test program that log the download speed of a big file.
I start downloading the file using WiFi with an average speed of 180KB/s.
Then I start the app again downloading the file using 3G with an average speed of 20KB/s. After a few minutes of download, I enable WiFi. In the status bar the WiFi icon appear but the download speed don't change.
I was expecting that iOS switch between connections from 3G to WiFi. But it looks that although WiFi is enable, 3G is also enable. Is that correct?
In case that 3G speed is faster than WiFi, iOS switch to the better connection automatically?
In case both connections are enable it is posible to decide which one of the connection use?
If it posible to test 3G and WiFi download speed at same time?
My best guess is that once a networking connection is established, the established connected stays alive until it finishes. For example, if you start a download over a cellular data connection, the download will complete on that same connection. If that is, in fact, the case then enabling WiFi in the middle of a download won't affect the download speed for that current download, but if you start a new download after establishing the WiFi connection, the new download should transfer at WiFi speeds.