Posts

Post not yet marked as solved
10 Replies
1.8k Views
We upload videos form our application, the video upload starts in the foreground but the requirement is to support upload in the background as well. Followed the all steps that I gathered and understood reading in various article to support the upload in background as well. We have video content as data in the request - create an upload task which is delegate based. Then we write the whole request content into a file and pass to the upload task to upload. Use background session configuration.  Now, my problem is sometimes I see the progress of upload going upto 100% then re-starting. On debugging further found that the timeout was happening on the server. And based on default timeout 60s it tries to re-start. How do I change the timeout value, setting the timeout interval on session does not seem to work. It works only it set to less than 60, trying to set to great than 60 doesn’t work. I tried setting both timeoutIntervalForRequest And timeoutIntervalForResource
Posted Last updated
.
Post not yet marked as solved
3 Replies
630 Views
When we try to connect to a TLS1.2 enabled server url in AVPlayer without explicitly setting anything in plist file, our media content plays fine in iOS 13.x but for whatever reason, it fails in iOS 11 and iOS 12. That doesn't make sense since we would expect with iOS 13 the requirements of the server protocols would be more stringent. But it seems to be happening the other way round. Domain=NSURLErrorDomain Code=-1022 \"The resource could not be loaded because the App Transport Security policy requires the use of a secure connection.\" UserInfo={NSLocalizedDescription=The resource could not be loaded because the App Transport Security policy requires the use of a secure connection., NSUnderlyingError=0x1c12405a0 {Error Domain=kCFErrorDomainCFNetwork Code=-1022 \"(null
Posted Last updated
.
Post not yet marked as solved
5 Replies
2.1k Views
Is there a way for us to be able to make a heartbeat webservice call from the app, while it is in background, say every 15 min?Timers don't work in background since iOS will suspend the app, and its not a one time heartbeat which we can use background processing/fetch for.To note, this will not be an infinite activity. Only for a period of time.
Posted Last updated
.