Cordova App sqlite数据库查看器在运行时应用程序测试(如Web SQL)上 [英] Cordova App sqlite database viewer on runtime app testing like Web SQL

查看:151
本文介绍了Cordova App sqlite数据库查看器在运行时应用程序测试(如Web SQL)上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为android&创建混合应用程序使用Cordova的iOS平台.在这个应用程序中,我需要将信息存储在数据库中(当前存储在WebSQL中).但是WebSQL在android 4.4.4版本中不支持.现在,我们决定从WebSQL切换到Sqlite.在WebSQL中,我可以通过使用Google Chrome浏览器检查应用程序来查看数据库.但是在实现 sqlite插件之后 我无法在应用程序运行时查看数据库(或在Google chrome中检查模式).

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).

请帮助我.

推荐答案

如果您正在设备上执行并且需要查看sqlite存储的数据,请安装"

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".

这篇关于Cordova App sqlite数据库查看器在运行时应用程序测试(如Web SQL)上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆