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?

Replies

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?