I want to send the data from iphone to server periodly in background.
I use URLSession (dataTask) to try it , and when my program is changed into background:
- sometimes, the communication can be kept for several hours without any problem
- sometimes, the dataTask will be stopped and after several minutes, it will be restarted automatically
Is there any method to keep the communication between the iphone and server continuously?
-
—
eskimo
Add a CommentI responded on your other thread.