I working on a Xamarin Forms App and need to upload and download some data in background while app is not being in use.
I understand background services are implemented differently on each platform and I am starting from iOS.
So I have gone through the documentation of Background Transfer Service https://docs.microsoft.com/en-us/xamarin/ios/app-fundamentals/backgrounding/ios-backgrounding-walkthroughs/background-transfer-walkthrough but I am unable to understand where to write the download tasks for upload. I have implemented NSUrlSession, NSUrlSessionDownloadDelegate but unable to figure how can I initiate some tasks to download files.
Is there any complete sample exists anywhere? I have checked the SimpleBackgroundTransfer sample but its actually using UI to kick-off the download task but in my case, the app itself should kickoff these uploads and downloads in background.