-
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
Not to backup to iCloud Options(iOS) #143
Comments
I am also having big problems with this - could this be prioritised? |
For our app also, we do not need to backup data to iCloud and would like to know if it is possible to store in Cordova's |
@ericyu76 Could you please share the solution if you have got any? |
My solution was simply not to use the plugin and use local storage in the Hope this helps On 24 October 2014 08:58, Prathap Reddy [email protected] wrote:
|
@brodybits If the below code is used to not to backup to iCloud in iOS
In place of
Does it still backup to iCloud? And any plans to support WP7? @dilignt But for us, 5MB is very low to use. Because we will be storing lot of text inside that. Thanks. |
This sounds like maybe an option that should be passed in to the |
@svapreddy I removed this SQLite plugin from my code, and my app still review in progress. The limited storage space problem still there. |
Here is some information regarding the backup to iCloud optional. Not quite sure this progress. |
@ericyu76 Use the code I have referred in my previous comment. Which does not backup to iCloud. I have tested it and it's working fine for me :) @nolanlawson Code I have provided in previous comment can be used to for not backing up to iCould at all. |
Faster link to workaround: https://groups.google.com/forum/#!topic/Cordova-SQLitePlugin/X9qWxMeHv-8 thanks @ericyu76 |
As commented in #16, it is better to support and use the standard paths defined in the Cordova File API, i.e. |
Any word on this? This is really important to a lot of devs that can't get their app approved. I'm using PouchDB on cordova and this plugin is awesome, but needs this options asap. |
@tannerlinsley - I managed to get my app approved by changing the Don't forget to also add Hope this helps |
Thanks guys! I am planning to make the solution in the next couple weeks or What I am thinking is to add an optional parameter to specify the documents I would also favor the default NOT to be sync'd to iCloud, but with For now I give the solution as described by @Diligent as the workaround. @brodybits On Tuesday, January 20, 2015, Dilignt Ltd [email protected] wrote:
Sent from my mobile |
Hi @svapreddy it should be possible to build the WP(8) version to run on WP7 as well (using the CSharp-SQLite classes) but I have not been able to test it. If you (or someone else) could try to run it on WP7 and send a pull request if it works, it may help someone else 😄 |
Ok I have a working solution which I am just about to upload to Apple. This is taking some information from the above link, and from applying a bit of common sense. Step 1 : Find the file SQLitePlugin.m and go to line 170 ish. Now put the below lines: NSArray *paths = NSSearchPathForDirectoriesInDomains(NSLibraryDirectory, NSUserDomainMask, YES); In place of : NSString *docs = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex: 0]; What this does is to tell the SQLitePlugin where to look for your database. The bit you are still missing is to get dbcopy to copy the .db file from the resources directory into the correct directory on the phone. To do this I did the following: Step 2: Find and open the plugin file sqlDB.m: Find the below: paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); Replace with : NSArray *paths = NSSearchPathForDirectoriesInDomains(NSLibraryDirectory, NSUserDomainMask, YES); That's it your app is back into a working state and now uses the Library/NoCloud directory rather than the Documents directory on the iphone. I'll let you know if this solves the issues for Apples tests. |
…sable iCloud backup (iOS ONLY) ref: #143 Changes to db map code in iOS version Minor updates to readme
I have just pushed a new release to master with this feature. Please see README.md for usage. The plugin creates a new |
This fix is wrong - there should be an option to disable backup to iCloud I fixed this issue in the previous version by changing NSDocumentDirectory Please disable the backup to iCloud On 18 February 2015 at 10:48, Chris Brody [email protected] wrote:
|
@brodybits what if I use pre-populated DB? I need to disable iCloud back-up. Will this code work?
in Xcode console I get
Thank you in advance |
On Mar 16, 2015 9:54 PM, "Stanislav Dzhus" [email protected] wrote:
In your case you have to include both location and createFromLocation To fix your code:
createFromLocation: 1}); I will make this more clear in the readme. Please report if it still does Chris |
I used your fix
|
Make sure your db file does not already exist (in the target directory). I made an example pre-populated db project (Android version only) at: https://github.com/brodybits/Cordova-pre-populated-db-example-android |
it works! thank you |
Thanks happy to hear! |
👍 |
Is there possible to add not to backup to iCloud as an options? I'm facing the Apple reject by this reason. We actually no need to backup to iCloud, is there any workaround?
The text was updated successfully, but these errors were encountered: