Select to view content in your preferred language

Incomplete replica downloads restart instead of resuming

825
2
10-18-2016 06:23 AM
ChristopherMilack1
Regular Contributor

I've been using [AGSGDBSyncTask generateGeodatabaseWithResumeID:status:completion:] to restart downloads that did not finish. I'm putting this in place to handle scenarios where the app is killed, a user loses connectivity, etc.

I've found that when I'm attached to the debugger, I can call this method and the download will resume from where it left off. However, if I launch the app without being attached and resume the generate task with that method, the download will restart completely. 

Is there a way I can force the SDK/iOS to resume the download from where it left off? Has anyone experienced this or have an idea as to why this would only work when attached to the debugger?

Thanks!

0 Kudos
2 Replies
YueWu1
by Esri Regular Contributor
Esri Regular Contributor

Hi Chris,

Not sure have you check this stack overflow thread before. 

ios - How to resume a download when the app force-Quit? - Stack Overflow 

0 Kudos
ChristopherMilack1
Regular Contributor

I hadn't seen that but I have been force-quitting to test this. I'm willing to bet that a force quit is handled different when connected to the debugger. I will test this more today and see what I find.

0 Kudos