Posts by DecSoft

Show threads by DecSoft
3355 posts found, page 69 of 224

DecSoft (In thread: Usar la variable APP_ID con el plugin AdMob)

Hola Juan,

Entonces, es posible que estemos ante un error del propio plugin de Apache Cordova, sobre el que deberá investigar. Añadiendo el ID tal como le he dicho, y, como podrá ver, los archivos "BAT" generados por DecSoft App Builder incluyen dicho ID al instalar el plugin... tal como parece necesitarse... igual es que el ID debe ponerse de alguna forma especial, como entrecomillado... algo así...


DecSoft (In thread: Usar la variable APP_ID con el plugin AdMob)

Hola Juan,

Este plugin ha estado funcionando como es espera en el pasado, sin indicar ID alguno, y, es extraño, porque, al intentar probar el ejemplo "AdMob" ahora mismo en mi teléfono, pareciera que no se reconoce el plugin, y, la función de "error" es ejecutada. Sin embargo, la app compila perfectamente y sin errores en Apache Cordova...

Vamos a probar lo siguiente, de momento. Abra el archivo "C:\Users\[Su nombre de usuario]\Documents\AppBuilder\Plugins\AdMob\Plugin.xml" y cambie la siguiente línea:

... cambie dicha línea de manera que incluya el ID que parece necesitar, por ejemplo:

Pruebe con el mismo ejemplo "AdMob" que se incluye en DecSoft App Builder, y, por favor, comente por aquí el resultado.


DecSoft (In thread: Using certain Cordova SQLite plugin)

Hello Ryan,

Please, no problem at all. If I was not as busy as I am (and you will know in what in the near future... and I hope that you enjoy it..) I will try the plugin by myself... maybe I can finally do it... there are various samples about JSON (see JSON, JSON2, JSON3 samples apps)... it's quite easy to work with JSON, and, since the FileWrite and FileRead works with text files... and we can serialize any JSON and unserialize it... can be a possible to store complex data offline, that is, something more complex than simply plain text. But the SQLite plugin must work... for sure that must work... or at least we must know what is happen... and if what happen can be solved or what...


DecSoft (In thread: Using certain Cordova SQLite plugin)

Hello Ryan,

Of course maybe you can consider other possibles ways, for example, JSON: you can use the FileWrite and FileRead actions to read and write JSON files, for example. Deal with JSON is quite easy, in principle. JSON is a Javascript notation by itself, that is, if we save an Array, what we get when load the JSON is an Array, if we save objects, what we get are objects ready to use. But anyway the point is why the SQLite plugin don't work... are you try with an empty (or not empty) existing file database? Maybe this can work... so you can get the SQLite plugin working...


DecSoft (In thread: Using certain Cordova SQLite plugin)

Hello Ryan,

I can read here that the method that you refers open a database, but, don't mention that can create a database if not exists. That's a good point... because if the plugin need to create a file in "//data/data//databases/"... maybe we need some special permissions or something like that? Are you try by provide an already existing database file, even when it's empty? So use the files manager to pick a database file in order to be use... and try to open it... in this way at least we avoid the creation, that maybe it's causing the problem. Because you are right... we are talking about Javascript at the end... must works...


DecSoft (In thread: Using certain Cordova SQLite plugin)

Hello Ryan,

For sure we can't use the absolute path of your computer: we can choose that file when using the app files manager. To me "com.ptsapp.pts/files/" is rare, because I am not sure where you view this path, or if that is the path in which the plugin expect the database files.

In the best case, the path can be changed with the provided one, so, we can add the database file using the app files manager and therefore can use a path like "app/files/myDatabase.db". Exactly in the same way that you can use another file, like a JSON file, for example.

In the worst case, the plugin expect the files to be in the path that you referred... so we must manually copy the database file in that path, which must be inside some of the "platforms\android\" folders... the point is that the plugin's documentation must be clear about all of this...


DecSoft (In thread: Using certain Cordova SQLite plugin)

Hello Ryan,

I am not understand the Android SDK -> Android... if you add a file from the Other tab in the app files manager, that file is copied with the other app files (HTML, CSS, JS, etc.) in the "app/files/" path. So, if you add a "MyFile.db" from that place, the final path for that file is "app/files/MyFile.db". Are you tried with that? How you try? Can place here the paths that you are trying to use and in what variable are you set it?


DecSoft (In thread: Using certain Cordova SQLite plugin)

Hello Ryan,

If you use the app files manager and the Others tab, then choose the "pts.db3" file from your computer, when the app is compiled, that file is copied into the "app/files/" directory, so their path is "app/files/pts.db3". Be sure that you use the files manager and be sure that you can find that file in "app/files/".


DecSoft (In thread: Using certain Cordova SQLite plugin)

Hello Ryan,

I can't answer at this moment... you must refer to the plugin's documentation: maybe the "name" must be the database's file path, maybe just the database file name, and then use the "location" to place the database's directory... I can't help you right now on this, but you must take a look at the documentation, since there is not the same to set one thing or another...


DecSoft (In thread: Using certain Cordova SQLite plugin)

Hello Ryan,

The problem is probably the database or the name or the location. I did not try this plugin, but, asume that the database name must refer to some existing database file. If so, probably we can't simply use a database name like "pts.db3", but something like "app/files/pts.db3", suposing we include the "pts.db3" file using the app files manager and from the Others (files) tab.

About the device ready, probably the code no need to be wrapper inside that event handler: for example, if you execute the code in certain Push button Click event, once the app has started (of course), maybe in other app view than the main one, then the device ready event has been already fired, and therefore we can use the code "as is" without problems. But if the code is placed in the main app view Show event... then is possible that that code are executed before the device ready event is fired.


DecSoft (In thread: Using certain Cordova SQLite plugin)

Hello Ryan,

Since, if I am not wrong, we depend on an Apache Cordova plugin... are you sure that the above code is executed after the app Ready event? I can't see anything except that maybe the "args" variable must be preceded with the "var" reserved word... :-(


DecSoft (In thread: MessageBox button index)

Hello Ryan,

Yes; you can take a look at the MessageBox sample and the MessageBox action. Basically the "callback" that we can optionally set receive one argument, which is the button index pressed by the user.


DecSoft (In thread: HTML Compiler: Need to click 2 times on exe file to get it started)

Hello Jan,

It's possible to provide me the HTML app to try it here? Or maybe the compiled executable? You can send it to me using my E-Mail address (I supose you know it, if not, please, tell me and I will inform to you). I can't reproduce the problem here using Windows 10 64 bits too. Are you try with the samples? The problem is reproducible? Or only occur in some specific executable?


DecSoft (In thread: HTML Compiler: No support in compiler for Javascript ECMAScript 2015 (ES6) version?)

Hello Jan,

I think it's an issue of Internet Explorer 11. HTML Compiler is based in Internet Explorer 11, so, we can't write code that are not supported by this browser.


DecSoft (In thread: HTML Compiler: overview what is possible and what is not?)

Hello Jan,

Maybe because the code that you are trying can't work in Internet Explorer 11, in which DecSoft HTML compiler is based? I bet for that... there are some specific limitations (mainly in the video and audio tags) in the program, but, not related with the possible Javascript that we use: except that that Javascript must work in Internet Explorer 11.

The new generation of DecSoft HTML Compiler is now based in the Edge Runtime WebView, which offers to us lot of more capabilities avoiding the limitations that the previous generation of the product (based in Internet Explorer) impose to us. Try the new generation of DecSoft HTML Compiler!

Everybody can read the DecSoft support forum for learning purposes, however only DecSoft customers can post new threads. Purchase one or more licenses of some DecSoft products in order to give this and other benefits.

This website uses cookies only to store your preferences.

Ok! Hide this note More information