Cordova App sqlite database viewer on runtime app testing like Web SQL

坚强是说给别人听的谎言 提交于 2020-01-05 08:34:51

问题


I am creating Hybrid app for android & iOS platform using Cordova. In this app I need to store information in database (currently storing in WebSQL). But WebSQL not supporting in android 4.4.4 version. Now we decided to switch from WebSQL to Sqlite. in WebSQL I can view database by inspecting app using Google Chrome browser. But After implementing sqlite plugin Im not able to view database while app is running (or inspect mode in google chrome).

Please help me.


回答1:


if you are executing on a device and need to view the data stored by sqlite, install the "stetho" plugin, it lets you open a dev tool with sqlite data. connect the device on the computer, open the app, open the chrome and type in the navigation bar "chrome://inspect", and click the link related to "stetho".



来源:https://stackoverflow.com/questions/46088710/cordova-app-sqlite-database-viewer-on-runtime-app-testing-like-web-sql

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!