从ios设备本机代码访问Cordova中创建的locaStorage或Web数据库(WebSQL) [英] Access locaStorage or Web database(WebSQL)created in Cordova from ios device native code

查看:73
本文介绍了从ios设备本机代码访问Cordova中创建的locaStorage或Web数据库(WebSQL)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个cordova应用程序。数据库是使用websql创建的。我需要访问数据库并压缩文件进行备份。



I我需要知道如何使用目标c从存储位置访问数据库?无论如何还是不可能?

任何人请给我一个解决方案..

I have created a cordova application.The databases are created using websql.I am in a need to access the database and zip the file for backup.

I need to know how can I access the database from where it is stored using objective c?Is there anyway or is it not possible?
Anybody please give me a solution for this..

推荐答案

数据和应用程序在iOS中是分开的,因此您无法在同一设备上访问。但如果cordova是服务器,它将起作用。一种方法是SOAP / XML或JSON。



这是一个安静的好东西示例,阐明原则。
Data and apps are separated in iOS, so you cant access on the same device. But if the cordova is a server it will work. One way is SOAP/XML or JSON.

Here is a quiet good sample that enlights the principles.


这篇关于从ios设备本机代码访问Cordova中创建的locaStorage或Web数据库(WebSQL)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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