Windows fallback using cordova-sqlite-storage
nsteenbeek opened this issue · 3 comments
nsteenbeek commented
Since 0.1.12 the Windows app has no window.sqlitePlugin anymore to support opening a db without 'key' option. Using cordova-sqlite-storage is not an option, since that will brake Android/iOS, because it uses window.sqlitePlugin too. How to get Windows running in same codebase?
brodybits commented
I would use a conditional based on whether or not your app is on windows. If you app is on Windows then you would open the database with no key option. I hope this helps.
nsteenbeek commented
I tried that, but then found window.sqlitePlugin was not there. That due to plugin.xml
<platform name="windows-disabled">
That results in no sqlitePlugin at all for Windows.