dannycabrera / SimpleBackgroundUpload

Xamarin.iOS sample using NSUrlSessionUploadTask to upload files while app is in the background
MIT License
18 stars 9 forks source link

Background Upload and Lock Screen #2

Open MattCrees opened 5 years ago

MattCrees commented 5 years ago

Hi

We have implemented background uploads using your example and added them to a loop. Our app users upload a number of photos to a backend web api to be attached to some business management software. The photos are looped around and a number of upload tasks are created while the app is in the foreground. It appears that if you press the home button the app the transfer continues OK, locking the phone appears to suspend any transfers.

Do you have any suggestions? Thanks

dannycabrera commented 5 years ago

Hi @MattCrees, one thing that comes to mind is your app's Data Protection setting. Did you set any protection level?

https://developer.apple.com/documentation/uikit/protecting_the_user_s_privacy/encrypting_your_app_s_files