-
Notifications
You must be signed in to change notification settings - Fork 714
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SURVEY] Change default iOS location to prevent iCloud backup [BREAKING CHANGE]? #430
Comments
+1 makes it easier to get an app up and running and accepted into the Apple app store. |
Indeed, way easier for ios! Lets do it! |
+1 my app was rejected because of this, so I had to spent one more week waiting for another review to finally release the app |
+1 - it certainly should not violate AppStore rules by default. Plugins in cordova do not get upgraded automatically; when authors upgrade plugins, they should always check for backwards compatibility. It's not too difficult to add a piece of code that will move databases from old location for their existing users, and it will have to be done anyway to get app approved. |
Thanks for the feedback, I will make this change sometime in March. |
+1 |
Hey there what is the status and / or if it is fixed now, how do I make sure my application is using the proper directory? Thanks |
I will still need a couple of weeks or so. Until this is fixed, please use the |
I have added a new, more explicit iosDatabaseLocation openDatabase/deleteDatabase option and made it mandatory to specify the iOS database location in openDatabase and deleteDatabase. This will definitely break some app source code but would avoid a more silent upgrade issue. In case someone needs to overwrite window.openDatabase, it can be done with something like this (edited): window.openDatabase = function(dbname, ignored1, ignored2, ignored3) {
return window.sqlitePlugin.openDatabase({name: dbname, iosDatabaseLocation: 'default'});
}; In the case of PouchDB it would be mandatory to use the |
In February 2015 I published a change with a
location
option that can be used to select the location of the database for iOS. Usinglocation: 2
would store the database inLibrary/LocalDatabase
which will NOT be backed up by iCloud [1: #143]. I did not make this the default option since I wanted to avoid breaking existing app code.As a consequence, PouchDB had to also add a
location
option [2: #200] [3: pouchdb/pouchdb#3617].I would like to change the plugin to store the database in
Library/LocalDatabase
by default for some reasons including:BackupWebStorage
setting inconfig.xml
does not apply to the iCloud backup [6 - https://github.com/[Build] BackupWebStorage No Longer Works phonegap/build#338#issuecomment-113328140]As @dilignt wrote in [7 - https://github.com//issues/143#issuecomment-77147967]:
The downside to this change is that it would potentially break some applications and libraries that depend on this plugin. Existing apps for iOS that do not use the
location
option would have to explicitly add this option in order to use the database from the old default location.An additional change I would like to make is to introduce an
iosLocation
option (perhaps with different values) and deprecate the existinglocation
option.A note with a link to this survey is going into README.md. I would like to ask the user community to comment as follows:
-1
,stupid idea
. Please feel free to add a reason.+1
comment and feel free to add a reason.I will leave this open for 2-3 weeks and take all input seriously.
references:
The text was updated successfully, but these errors were encountered: