Hello to all,
Here is a new DecSoft App Builder release, with the below changes, fixes and enhancements:
Hello to all,
Here is a new DecSoft App Builder release, with the below changes, fixes and enhancements:
Hello Ava,
Your're welcome. Commonly (at least in my experience) when we try to stop the code execution to do something... probably we can take another approach... since stop the code execution is not always possible. On the other hand, certainly the above code works as expected, that is, certain "complete" callback is executed after (and never before) certain animation is done.
Hello Harald,
Yes; in AB the "InAppBrowser" Cordova plugin is referred just as the "Browser" Cordova plugin, so, to include it in our apps we only need to check the "Browser" checkbox in the Cordova options tab in the app's dialog.
Please, take a look also at the OpenWindow. Post here if you have any further questions about this, Harald.
Hello Ava,
I am not sure if understand 100%, but, certainly the animations CSS classes provided "out of the box" don't allows something like you wanted. On the other hand, actions like "BlockApp" block the user interface, but not the next code execution. Maybe you can use jQuery animations, which provide the right way to know when a more or less complex animation finish.
For example, place a "Button1" control in an app view and place the below code in the Show event of that view:
I hope this can be useful for you. Please, go ahead if you have any further questions.
Hello Peter,
Works like a charm now. Many thanks, Pete
You're welcome! :-)
Hello Peter,
Please, upgrade your AB copy, there is a new release with the below changes:
The above changes mean that probably you also need to change the HTML code for the "online/offline" indicator, that now can be look like below:
Note how we surround both "true" and "false" with single quotes, since "App.Online" is now a "true" or "false" string, not a boolean value like before. This changes also means that your desired condition can now be used as you expected:
Hello to all,
Here is a new DecSoft App Builder release, with the below changes, fixes and enhancements:
Hello Peter,
Please, sorry for the possible inconveniences. You are right, there is some possible enhancement in AB and I am working on it right now. Please, wait for a new post here when a new release are available. I also explain what happen in the next post.
Hello Ava,
The "BlockApp" disable the app's interface (so the user cannot interact) but do not block the next code to be executed. You mention that "call some CSS class"... please, can you explain this a bit more, Ava? How you are "call some CSS class"?
Hello to all,
You are right, Peter. Please, use the same HTML code than above, but, place this action in both Online and Offline app's events:
Hello to all,
If you place the above HTML code inside an HTML control, you must see "Online" or "Offline", Peter, without doing anything else.
Hello Peter,
Maybe I am wrong, but, even when a Timer can be a solution... why not to use the solution proposed in my last post, that do not require a Timer at all? (I am curious... :)
Hello to all,
Certainly, a Timer control can be a solution. However, we have the "Online" and "Offline" app's events, and, also the "App.Online" variable. With this variable we can use an HTML markup like the below inside an HTML control:
Without doing anything else, when "App.Online" are "true", what we can see is the "Online" text, and, when "App.Online" become "false", what we can see is the "Offline" text.
On the other hand the app's Online and Offline events can be used anyway if we needed. That is, if we are using another control, not an HTML control, we can use that events in order to show or hide that control / indicator.
Hello Peter,
In certain app that I am developing for Android and iOS we use the Online / Offline event with good results. I think the description of the "App.Online" variable can be take as the best advise:
This variable store "true" if the app is considered online or "false" when not. Take also a look at the Online and Offline app events. This variable apparently do not work in the Cordova platform. If you plain to build your application with Apache Cordova, use the GetNetworkType action and the Network plugin for Apache Cordova.
Thanks you, Amin! :-)
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.