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

How to connect to other native application database #747

Closed
yasser-mas opened this issue Jan 29, 2018 · 2 comments
Closed

How to connect to other native application database #747

yasser-mas opened this issue Jan 29, 2018 · 2 comments

Comments

@yasser-mas
Copy link

I have native application which has shared database, I want to connect to this database by ionic native sqlite.

@brodycj
Copy link
Contributor

brodycj commented Jan 30, 2018

I do not understand what you mean by "shared database".

In case of a ContentProvider on Android you have to use https://github.com/phearme/cordova-ContentProviderPlugin as I said in #746.

In case of other code that uses the same database within the same Android APK you have use the androidDatabaseImplementation: 2 setting in order to avoid database corruption risk due to "multiple SQLite problem" on Android as described in http://ericsink.com/entries/multiple_sqlite_problem.html (see #626).

@brodycj
Copy link
Contributor

brodycj commented Feb 13, 2018

Closing due to lack of response

@brodycj brodycj closed this as completed Feb 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants