I need help on how to keep in-app-purchase items in my application downloading when the user sleeps his iPhone, or the application enter the background mode. Does anyone have any ideas?
I need help on how to keep in-app-purchase items in my application downloading when
Share
Define BackgroundTaskWithExpirationHandler in applicationDidEnterBackground: like this:
To see how it works download sample project I made for You.
…and press Home Button to trigger applicationDidEnterBackground:.
Idea is to delegate your download task to another, privileged thread and keep your application in background state instead of let OS suspend it.