-
Notifications
You must be signed in to change notification settings - Fork 1.3k
MGLOfflineStorage iCloud Backup #5112
Comments
Thanks for the report. We already try to exclude offline downloads and ambient cache from backups — that happened in #4493 and v3.2.0, the first release that offline was available. This appears to be insufficient for some applications — in my testing, an enterprise app did not backup offline data to iCloud, but an App Store app did. /cc @1ec5 |
#4493 excluded the cache from backups using
We used to store the cache in Caches, which does not get backed up, but as explained in #4371, we moved it to Application Support so that offline downloads wouldn’t get purged by the system. @suvov, did you upgrade your application from iOS SDK v3.1.x? Looking through the code, I wonder if what happened is that we set that flag on a nonexistent cache, then moved the legacy cache from Caches to the new location in Application Support. We should reverse the order so that the flag is set on the cache no matter where it came from. Hopefully that’s the only case in which the cache could be backed up. /cc @jfirebaugh |
@1ec5 I just retested the App Store app (that had been updated from some earlier version to v3.2.0) and a fresh install still uploaded the cache to iCloud. Another option may be to create our own subdirectory and set |
I’m not sure how that’s any different from setting it on the one file we create, but it’s worth a try. The migration code is going to get a bit messier, though. |
Actually, that makes sense: in a fresh installation, the cache doesn’t exist until after the |
It’s cumbersome to test, but I believe this could be limited to the first launch of an app.
😬 |
@suvov Thanks again for reporting this issue. When we put out another pre-release build later this week, it would be great if you could attempt to verify that our patch actually fixes the problem (because it’s not such an easy thing to verify!). |
@friedbunny Sure, will try it. Thank you for offline support in first place. |
v3.3.0-rc.1 is out. |
Ports fix for GL JS issue #5112. Line label projection can't be based on tile geometry that's behind the plane of the camera. The relevant tests are still ignored because the overzoomed collision behavior is different between native and JS.
Ports fix for GL JS issue #5112. Line label projection can't be based on tile geometry that's behind the plane of the camera. The relevant tests are still ignored because the overzoomed collision behavior is different between native and JS.
We're using MGLOfflineStorage to download offline maps as shown in your example code. And it seems that downloaded data gets backed up to iCloud. Which is against Apple guidelines. Actually we found it out after being rejected.
Steps to reproduce:
・Check iCloud backup size for an app in settings before downloading offline region.
・Check iCloud backup size after
The text was updated successfully, but these errors were encountered: