Hello Ava,
For that case we must use a bit of Javascript code, similar that the below one:
Hello Ava,
For that case we must use a bit of Javascript code, similar that the below one:
Hello Ava,
I ask you for the image, and, certainly can help, but, maybe not in this particular case. :-( The point is that if I modify the "SimpleVideo" sample just to copy the first MediaPlayer, so we have two of them, and then place a simple Push Button, in order to play both MediaPlayers... that works as expected, Ava: both MediaPlayers play as expected.
So I am not very sure about what to say right now... maybe you can prepare a small app in which we can reproduce the problem? Please, take a look anyway at the below app, which is the modified "SimpleVideo" sample. Try it and check if works for you too:
* Copy the above XML code and save it into a file named like "MyApp.ab", then open that file with DecSoft App Builder and run the app.
P.S. Probably you already check it... but apparently the error message refers to some "uncaught promise"... maybe some of the media files that you want to use don't exists? Maybe the error is not specify related with the MediaPlayer control? Are you tried the app in other browsers? Can you see in the Firefox's console, for example, the same error message?
Hello Ava,
The point is that you got it! Of course, you can send me the referred image to info@decsoftutils.com, so I can take a look.
Hello Danny,
In AB we don't have the concept of "forms", but, can send anything to the app's server in order to be processed. That is, you can place an Input control in one app's view, and, then, place a button to "submit" that input information. What you must to do is to use an HTTP Client control. The HTTP Client control point to an specific URL of your app's server, for example, a possible "register.php" script.
So you can call to that "register.php" script with the HTTP Client control, sending to the script the content of the Input control, and, it's just a sample: of course you can use more than one Input controls if you need it. The point is that, after the app send the register information, the server side is responsible to get that information and proceed with the register of the user, for example, inserting a new record in certain database table.
So the sequence can be resumed in these steps:
There is no more points... because we certainly no need more point in the client side. Again, the client side (our app) send the user information (Input controls) to the server, and, it's the server duty to proceed with the user registration. In other words, we need to work in the client side and also in the server side, in order to complete the register process.
There are various HTTP Client samples included in AB, for example, the "Login" sample let you know also how to send to a server the contents of certain Input controls. But please, Danny, go ahead and post here if you have any specific question around this question and we will try to help you.
P.S. Maybe one thing can be added here: the validation. You can and must validate the user's information in the client side, but also in the server side. So, for example, if you ask the user for a name, but the user don't provide a name in the right Input, you must check this in the client side, so, you can inform to the user that the user's name is missing. After you made the call to the server, the server must also validate the information again, and, only proceed with the register process if everything is ok.
Hello Ava,
We are talking about an error or a warning? In other words, the app can continue working or it's stopped after the error? On the other hand, please, refer here the complete error message: maybe we can view something useful in that error message that help us to help.
Hola Juan,
Pruebe con el ejemplo AdMob que se incluye con DecSoft App Builder. La acción "AdMobIsInterstitialReady" no espera un valor verdadero o falso, sino que permite especificar una función de la app o "callback", que será llamada y podrá determinar si el "interestitial" se ha preparado correctamente o no.
Hola Juan,
Revise el apartado de la ayuda "External Javascript". Para el primer caso podría definir la variable del siguiente modo:
De ese modo ya podría utilizar dicha variable desde AB tal como quiere:
Para el segundo caso, se trata de algo muy similar:
O, por mejor decir (puesto que la anterior variable sería "local"), algo como esto:
Hola Juan,
No tiene que ver con App Builder ni con Apache Cordova... Si no me equivoco, tiene que abrir el Android SDK Manager (una forma de hacerlo es mediante CTRL + R, escribiendo luego "android", pero, tal vez esto no sirva en su sistema: en todo caso debe hacer lo dicho: abrir, ejecutar, acceder al Android SDK Manager, acaso desde algún menú de Android Studio si el comando "android" mencionado no se reconoce en su sistema) y actualizar lo necesario o en todo caso "aceptar la licencia" de alguno de los paquetes que se le muestren.´
Si está tratando de usar algún plugin de Apache Cordova... tal vez este plugin necesite algunos paquetes en concreto disponibles (instalados) desde el Android SDK Manager. En todo caso el error en concreto no parece ese, sino que alguno de los paquetes disponibles ha debido actualizarse o algo así y es preciso "aceptar su licencia" de nuevo... o por primera vez...
Hello John,
I need to investigate a bit more when possible, since the sample works as expected in all the browsers that I try, not only in Chrome. What I see now, is that, for some reason I can't understand, we can't use jQuery to change the browser's pages color (like the sample want to do).
I am not sure if it's a question of permissions or what, since I discover that removing the jQuery lines and place a couple of "alerts" in their place, the sample working as expected, that is, the WebExtension receive the messages that we send, and even we can receive a message from the WebExtension context.
Even more, if we try something like this: "document.body.style.fontSize = '150%';", we can see it working as expected, so, it's quite rare why jQuery is not allowed... or working as expected... and I want to take a look at this when possible, John.
Hello Amin,
Thanks for your consideration. Certainly I don't provide too much help... maybe in the future. Maybe other mate know about a possible server websocket software to be used. I think that can be more or less easy to find information... following the above link... or just searching by something like "Java server websocket implementation"...
In fact it's rare that no one already exists... but I can't recommend one of them as I wanted... I am wrong... I figure out that we are using some specific software, but, no... we develop the websocket sever from the scratch. Maybe this can give us some information... probably it's not very, very difficult or complex to start with it... of course later the software can become more complex: database queries, etc., but, probably start with it (using Java, Glasfish, etc.) maybe it's not very, very complex at all...
What I mean is that probably I am missing something... for example, maybe a websocket server is in fact an HTTP server with some kind of particular configuration or something like that? That's what I start to think and what I want to say here...
Hello Amin,
First of all, please, sorry for the delay. Believe or not, I am working very hard in certain app these days and I have no time to write a reply! In fact that's the app in which we are using a websocket server for the app's chat and other features.
I have a problem, because, I am the responsible for the client side (working with AB), but not the server side. I ask yesterday to my boss (which is responsible for the server side, among other team members), about the websocket software that we are using: I really think that we use certain specific software, but, my boss told me we are not doing that.
When I ask about the software in the server he told me we use Java "glasfish", which is an "app server" similar than Java "TOMCAT". So it's "glasfish" who launch, execute or maintain the websocket server... WHICH HAS BEEN WRITTEN FROM THE SCRATCH... my boss offer to me this forum thread, in which apparently they base to prepare the websocket server.
And that's all what I can say... except if you want to ask something in particular: in this case I will try to find the right answer or directly reply if possible. No; not too much information, I know, Amin, but you must look for some possible "sample Java websocket server", follow the referred forum link, maybe it's possible to use some software which already offer to us what we need...
The client site (with AB) is more easy... requires their work, of course (I can remember when we develop the chat...), but what we must do is to use the WebSocket control, and, mainly, their Message event. Basically the server can send anything to the app... and viceversa, we commonly use JSON objects to transfer data, which appear very good, since a sole object can have several properties and values.
That's all for now, Amin... not too much help... but maybe we can continue ahead here or in other posts.
Hello John,
If the sample can be useful for you that's the point! :-)
Hello Amin,
If with "notifications" you mean push notifications... note that they works like a charm, but, not always in real time... because the notification is finally sended by the thirdparty service that we use, like Google FCM. Or maybe I am a bit wrong and you mean other thing but not exactly push notifications... or there is not a problem to receive that notifications "not in real time" (even when sometimes... they arrive in a merelly real time).
Hello John,
You place a non too much specific question, that is, something like "I am trying this and this other but I expect this result and get this error message..."... It's possible to do something like you wanted using a bit of Javascript, and, one of the ways in which we can think is what you can see in the below app sample:
Save the above code in a file and save it as "MyApp.ab", for example. Before open the file with DecSoft App Builder, look in your computer for a PNG image and copy it aside the "MyApp.ab" file with the name: "butterfly.png". Now yes, open "MyApp.ab" with DecSoft App Builder and run the app.
As you can see, every time you click the view (and the app, since we use the scale app option), the butterfly appear in the position that you clicked.
No problem, Peter! :-)
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 some useful cookies to store your preferences.