Skip to content

Save data into the sqlite file located in the assets folder. #466

Closed Answered by jepiqueau
rbonilla31 asked this question in Q&A
Discussion options

You must be logged in to vote

@rbonilla31 In both Swift (for iOS applications) and Java (for Android applications), you typically cannot directly override a database stored in the application's asset folder. The asset folder is usually considered read-only, and the contents are bundled with the application at build time.
When you use the copyFromAssets function, the database is copied from the application's asset folder to the the folder you set-up in the capacitor.config.ts file and there the modifications that your application made are saved in that database. Hope this clarify.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jepiqueau
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants