-
Notifications
You must be signed in to change notification settings - Fork 33
[Build] BackupWebStorage No Longer Works #338
Comments
Hi @amirudin, can you share reproduction steps for this failure? |
Thanks @wildabeast but it will take times to reproduce as it require submitting to Appstore (only Apple can tell). However here is the original discussion leading to this report: https://getsatisfaction.com/nitobi/topics/backupwebstorage_and_ios |
@wildabeast
|
Is there any movement on this? We are experiencing the same issue and need to re-submit to Apple ASAP. We set the preference to local and are going to rebuild but we have no guarentee that this will be successful. Is there anyone from Phonegap who can help us with this issue? |
Hi <preference name="BackupWebStorage" value="none"/ > ? |
To reproduce this bug,
Add this to the config.xml file (or local, both are broken)
Add some content to your LocalStorage in index.js. Something like
Build it (Meh)
Open the project in Xcode Now wait a few seconds (like 10 or 20... It takes some time to refresh) And boom the app appears (bottom of the list) ! The local storage is stored in iCloud. Hope you can help us with this. |
So whats up with this? This is important feature that still doesn't work. A lot of apps get rejected because of large documents folder. |
Just had two apps rejected because of this issue. Is there any fix? |
You have two possibilities. For now I am not aware of any other option. |
I am not using that plugin. However, it seemed the problem was with storage in the Documents directory. I am now using Thanks :) |
Created an issue on the Apache Cordova Jira. |
9 month for a bug (like this)??? It's crazy! |
There is a misconception on what this setting is. This is solely for backing up your localStorage/websql storage of the WebView to workaround the changes by Apple in iOS 5.1 and greater, where they are not automatically backed up. "cloud" means that they are backed up by iCloud. "local" means that it is not backed up by iCloud but backed up in Documents/Backups, with the "Backups" folder flagged to not be backed up by iCloud. "none" will not backup anything to anywhere. The reason "local" saves in "Documents/Backups" is so that it will be backed up by iTunes, so that your app will have the localStorage/webSQL data available when you restore a backup. If you store anything in Library or Documents (except Library/Caches), it will be backed up by iCloud. For the Cordova File Plugin, to use the Library/Documents folder but not sync it to iCloud, you use the specific extra filesystem: https://github.com/apache/cordova-plugin-file/blob/master/README.md#ios On a fresh new project, and examining the iCloud data for your app in Settings, you might see that it is enabled and that 0.7kb is being stored. This is your app's preferences file in Library/Preferences, since that does get backed up. |
Closing as expected behaviour, see Shazron's clarifications. |
The following preference is no longer working:
<preference name="BackupWebStorage" value="none"/ >
Original implementation:
#191
The text was updated successfully, but these errors were encountered: