I have got a vendor app. The app needs to download a file containing products data on receiving push notification wether app is in background, suspended or terminated state. Then the file needs to be dumped in coredata for further usage.
What's the best practice for achieving the above functionality?
I have downloaded a file using urlSessionDownloadTask, and also dumped it in the coredata. But that doesn't work when app is in suspended state.
Any help.