karo-solutions
karo-solutions

Reputation: 35

Phonegap database don't work after navigator.app.exitApp()

I sometimes close my app programmatically with naviagor.app.exitApp(). I noticed that when I reopen the app my SQLite Database don't work anymore (If I close the app with the task manager there is no problem). Is there any way to close the database connection programmantically? Or is there any other way to fix this?

Upvotes: 1

Views: 153

Answers (1)

Galax
Galax

Reputation: 365

You can use this to close an SQLite Database.

database.close()

Upvotes: 2

Related Questions