-
Notifications
You must be signed in to change notification settings - Fork 1
Description
From https://groups.google.com/forum/#!topic/phonegap/uWS-mL9WeSc:
The link to the example i am following - https://phonegappro.com/tutorials/phonegap-sqlite-tutorial-with-example-apache-cordova/
How do i test this on a pc as simply opening index.html but its not working, though i am able to run this on a mobile...please guide
and how to find/view sqlite db on mobile, please someone help
incase you need the source - https://phonegappro.com/wp-content/uploads/2016/05/phonegap-sqlite-example.zip
and the following response from Jeff Berwick:
You have to use a browser that supports WebSQL. Safari, Chrome and Firefox I believe support WebSQL.
The best solution would be to support the browser platform ref: storesafe/cordova-sqlite-storage#297
Otherwise the application code may have a condition where it would use either window.openDatabase in case of a PC browser or sqlitePlugin.openDatabase in case of a Cordova app. It should be possible to execute the same standard Web SQL transactions in either case. This is very similar to the "factory" design pattern.