AppGroup data of offloaded apps lost after restoring from iCloud backup

I was able to reproduce this with our own app as well as with apps by other developers (e.g. Documents by Readdle).


Our app stores its data in the app group:

Foundation.FileManager.default.containerURL(forSecurityApplicationGroupIdentifier: AppGroupConstants.appGroupIdentifier).appendingPathComponent("File Provider Storage", isDirectory: true)!.appendingPathComponent("Media", isDirectory: true)


1) Install the app from the App Store

2) Add some data

3) Manually offload the app (Settings -> General -> iPhone/iPad Storage -> *App Name* -> Offload App)

4) Backup device to iCloud

5) Reset device (Settings -> General -> Erase All Content and Settings)

6) Restore device from iCloud Backup (this is important - it works with iTunes backups)

7) Open the app. Because it was offloaded it gets downloaded at this point but the app group data is NOT restored.


This looks like a serious bug to me.


Can someone confirm this?

I recommend that you file a bug about this. Please post your bug number, just for the record.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

Hi eskimo, thank you for your response! This is the bug number: 36493856.

This bug is still there. Someone has news about it?

This bug is still there.

Indeed.

Someone has news about it?

Other than the fact it’s still there, no )-:

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

Is there a workaround for this bug? I would like to share a database with an app extension. An app group looks like the best way but it is really disappointing that it is not backed up that way.

Any updates on this?

Any updates?

AFAICT there’s been no movement on this bug (r. 36493856).

If this is causing you grief I recommend that you file your own bug about it. This will be marked as a duplicate, but that’s actually a good thing. It helps to highlight that this is an ongoing problem and it also means you’ll be notified if anything changes, which saves you having to poll here.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

AppGroup data of offloaded apps lost after restoring from iCloud backup
 
 
Q