简体   繁体   English

appGyver类固醇SQLite Cordova插件

[英]appGyver Steroids SQLite Cordova Plugin

I'm using steroids by appgyver (update to latest version which includes supersonic as well) to develop my app. 我正在通过appgyver使用类固醇(更新到包括超音速的最新版本)来开发我的应用。

I'm confused about the SQLite plugin. 我对SQLite插件感到困惑。 First they supported and included it, then they remove it, then they say that it will not work unless you configure the custom build (and there is no much documentation about that)... 首先,他们支持并包含了它,然后将其删除,然后他们说除非您配置自定义版本,否则它将无法工作(并且没有关于它的太多文档)...

I have a very simple application: textarea and button. 我有一个非常简单的应用程序:textarea和button。 When you click the button you insert intto the database the value. 当您单击按钮时,会将int值插入数据库。

According to the docs https://github.com/brodysoft/Cordova-SQLitePlugin 根据文档https://github.com/brodysoft/Cordova-SQLitePlugin

I'm using var db = window.sqlitePlugin.openDatabase({name : "mydb"}); 我正在使用var db = window.sqlitePlugin.openDatabase({name:“ mydb”});

to open the database. 打开数据库。 I have the scanner app updated on both android and ios. 我在android和ios上都更新了扫描仪应用程序。 The result is that in IOS works fine while in Android I get this error: "Cannot read property 'openDatabase' of undefined". 结果是在IOS中运行正常,而在Android中则出现以下错误:“无法读取未定义的属性'openDatabase'。”

My question is: for IOS the app will stop working once deployed on the appstore? 我的问题是:对于IOS,一旦将其部署到应用商店,该应用将停止工作吗?

Why it's working with IOS Scanner? 为什么它可以与IOS Scanner一起使用? Is it supposed to work? 它应该工作吗? I understood they removed SQLIte support. 我知道他们删除了SQLIte支持。 I don't understand. 我不明白 Then, cause in IOS works, why in Android is not working? 然后,导致在IOS中起作用,为什么在Android中不起作用?

Moreover, how to include SQLite plugin in a steroid project? 此外,如何在类固醇项目中包括SQLite插件? Anyone was suffesfuul with that? 有人对此感到满意吗? I love appgyver, they did a wonderful job with steroids and supersonic, but... for this SQLite plugin and related support (even an example would do) I'm a bit concerned regarding my decision to go with steroids and not with xamarin for example. 我喜欢appgyver,他们在类固醇和超音速方面做得很出色,但是...对于此SQLite插件和相关支持(甚至可以做到这一点),我有点担心我决定使用类固醇而不是xamarin的决定。例。

Thank you guys. 感谢大伙们。

AppGyver dev here! AppGyver开发人员在这里! You need to include the SQLite plugin as a custom plugin to your app using our Build Service, and then build a stand-alone app: http://docs.appgyver.com/tooling/build-service/ 您需要使用我们的构建服务将SQLite插件作为自定义插件添加到您的应用中,然后构建一个独立的应用: http : //docs.appgyver.com/tooling/build-service/

The SQLite plugin is included in the iOS App Store Scanner for preview purposes, so that's the reason it's working on iOS and not on Android. SQLite插件包含在iOS App Store扫描程序中,用于预览目的,因此这是它在iOS而不是Android上运行的原因。 This is actually something we're removing soon, so sorry for the confusion. 实际上,这是我们即将删除的内容,对于造成的混乱,我们深表歉意。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM