Skip to content
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

database not persisting when doing a phone transfer #105

Open
chrisdrackett opened this issue Sep 24, 2021 · 6 comments · May be fixed by #108
Open

database not persisting when doing a phone transfer #105

chrisdrackett opened this issue Sep 24, 2021 · 6 comments · May be fixed by #108

Comments

@chrisdrackett
Copy link

I just did a phone-to-phone transfer on iOS 15 and found that my DB didn't make it to the new phone. I'm in the process of seeing if this is also the case for an iCloud transfer as well.

I haven't looked too deeply into this yet, but did find the following:

// otherwise use this location, which matches the old SQLite Plugin behavior

Does this mean that this library does not put the database somewhere that will be syncable? Curious about the reasoning here as we really want to make sure that a users database is backed up to iCloud and will make it through a device to device transfer.

@craftzdog
Copy link
Owner

I'm not sure why but the code has come from this commit: nolanlawson/cordova-plugin-sqlite-2@bd8ec1c
Related issue: nolanlawson/cordova-plugin-sqlite-2#80

@gaodeng
Copy link

gaodeng commented Sep 25, 2021

I suggest making this optional and allowing backups by default

@chrisdrackett chrisdrackett linked a pull request Sep 30, 2021 that will close this issue
@knubie
Copy link

knubie commented Oct 13, 2021

I've updated my issue nolanlawson/cordova-plugin-sqlite-2#80 with a response from Apple about NSURLIsExcludedFromBackupKey here.

I think it is safe to remove NSURLIsExcludedFromBackupKey to allow for backups, but I'm not sure if it's necessary to change the directory itself from noCloud to something else.

@chrisdrackett
Copy link
Author

I just changed this to the directory that the apple docs suggest. I feel like I read that the noCloud directory is not backed up regardless of flag.

@knubie
Copy link

knubie commented Oct 14, 2021

@chrisdrackett Could you share a link to the Apple docs you're referring to?

@chrisdrackett
Copy link
Author

I can't seem to find it outside of Cordova docs, so I doubt that's true. Regardless, seems odd to store files that are backed up to the cloud in a "NoCloud" folder for new installations at least.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants