Hello Mike,
Yes; of course. Recently App Builder incorporates the ability to prepare the appropiate stuff in order to deploy our applications as a Progressive Web Application. By following the previous link you can get more information from Google.
Basically we deploy the application as a web application, in a hosting of our property, but, they are also integrated in Google Chrome for Android (right now, next Mozilla Firefox and probably Opera and others) and allow the users to put an icon of our application into the device's home screen.
Certainly the application can be run by taping that icon and then an special browser is shown to the user, including certain splash screen that the system prepares using some app's information like the name, description, etc. We can specify some options like the theme color, the background color, etc. Look at the app's options dialog under the WebApps tab.
This deploy method have some advantages, since we are deal with a modern standalone browser and not an Apache Cordova's WebView. Of course we can't use Apache Cordova features in such applications, but we can continue using the other App Builder stuff, controls, actions, etc. Just like any other HTML5 application ready to be deployed in modern desktop and mobile browsers.
In my honest opinion the Progressive Web Application concept it's very interesting and the integration looks good right now. And it's easy with App Builder! Just check the "Create manifest" checkbox from the WebApp options tab and you are ready. Deploy the application's files into your server and visit it using Google Chrome in your mobile: then select from the Chrome's menu the option "Add to the home screen", and that's all!
Hello Mike,
Thanks for posting and for your ideas. About the first point, are you try with the "Views import/export" feature? On the other hand, are you try with the "Master view"? If you need a button, for example, in every view, you can use the "Master view" to place the button, and then check the "Draw Master" option in the view in which you want that such button appear.
About the second point, I am not sure... when we copy and paste a control, such control must be renamed, since the controls' names must be uniques along the application. So I am not sure if I can understand well the second point. If you have any further question, please, go ahead Mike.
Hello Joshua,
Thanks for your kindly words. The above code is not completely correct, because "SimpleGet" is executed asynchronously, that is, the next action is executed probably without having a response from the server.
The "SimpleGet" action can be good, but not in this context. So what we can do? Use the HttpClient control instead, and extract the "response object" on the HttpClient control's Success event.
Hello Joshua,
Sorry for the delay. I expend all the day into the hospital with my mom. About your last post, certainly the first one is an "Array" which contains an "Object". So probably the data is ready, but inside the "Array" and not directly as in the second sample code, because this last yes, is an "Object" alone and not inside any "Array".
Remember App Builder have actions for both "Arrays" and "Objects", then, if you really wanted, you can access to the first "Array" in order to extract the "Object".
Hello Samuel,
Thanks very much for your efforts. I really appreciate it. I will take note also about the possible new BAT file option. I am very sorry, but I expend today into the hospital with my mom, and probably tomorrow too... I promise I put me into this and other things as quickly as possible Samuel.
Hello Joshua,
You must to allow the "cache-control" header for "CORS" requests. Here is how we can enable "CORS" from a particular PHP script, maybe this can help you in some way:
And here is how we enable "CORS" from an "htaccess" file for the Apache server:
Hello Samuel,
Many thanks for your efforts. Certainly I need to take a look in deep in the near future. :)
Hello Samuel,
Thanks for your efforts. As you can see only three icons appear "as default". However App Builder try to prepare such icons, in the same way than prepare the others.
Hello Samuel,
Some news about this issue. Finally App Builder creates up to 21 different icons and 3 splash screens for the Windows platforms. As you can see when upgrade your App Builder copy, only three icons appear to be missing! That is, even when App Builder provide it, something is wrong,... since Apache Cordova put in their place their default icon.
Of course I will to continue investigating this, however, certainly I am go so far from the Cordova's documentation. In fact some of the icons are not well documented or at least I can't found it documented.
Hello Samuel,
I simply can't understand why the splash screen issue. I follow the Cordova documentation and provide with the two required (for Windows) splash screen files. Then Cordova creates (by their hat) some other images, which are finally used, at least in some screen sizes. I will take note about this and try to search for a posible solution.
P.S. I know Cordova generates some images because I try to generate the same images from App Builder without success.
Hello Samuel,
I cam compile your sample here:
Certainly the splash screen do not appear (in their place a Cordova's generic icons is shown), at least for some screen sizes, but I will investigating that...
Hello Samuel,
I asume you try with my suggested changes in the Icons compression level. Ok. Please, Samuel, delete by hand the "_Compiled" directory of your application and then try to compile it again. If I can do it here... then you must do it!
Hello Samuel,
Perhaps what happend is you don't change (I need to revisit this in the future, because if you upgrade App Builder the compression level is "0", which means "No compression", which means larger image files, which cause the problem...) the compression levels? Take a look at the below image and set the trackbars more or less that you can see:
Hello Samuel,
I am working on this issue and the current release of App Builder has this changes and enhancements:
* Fix a problem with certain app's icon for the Cordova's Windows platform, which causes the Cordova's build can't end correctly. After this fix we can build our apps for the Cordova's Windows platform (for Microsoft Windows 10 for example) without that problems.
* Add some new AngularJS img-src sanitization white list items like "ms-appx-web" in order to be ready with the Cordova's Windows platform. Before this addition app's images are not properly shown in the Cordova's Windows platform.
* Added the new Splash compression level options in the Behaviour tab of the program's options dialog. This new option allow us to set the compression level for the PNG generated by App Builder from the app's splashs. By default the compression level is 5, which also solve the problem with some image weight for the Cordova's Windows platform.
* Added the new Icons compression level options in the Behaviour tab of the program's options dialog. This new option allow us to set the compression level for the PNG generated by App Builder from the app's icon. By default the compression level is 5, which also solve the problem with some image weight for the Cordova's Windows platform.
Update your App Builder copy Samuel and try it to build your app for the Windows platform. Below you can see the Calculator sample running in my Windows 10 operating system:
Hope this can be useful for you! :)
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.