Hi David
I found an example how to use an AB Script function return code in JS here in the forum. What about the other way around?
Is it possible to use the return value of a JS Custom Function in an AB Script?
Hi David
I found an example how to use an AB Script function return code in JS here in the forum. What about the other way around?
Is it possible to use the return value of a JS Custom Function in an AB Script?
Can I display a variable's content inside a HTML control? E.g.
Really, really awesome job with the new Electron platform :-)
Can we have this for the Mac, too ? It just requires AB to generate the proper build scripts. I have tested it and it works out of the box!
Here an example of the release script. There is just one special thing: The permissions of the app-builder need to be executable - see 1st line.
Not in my case. I keep data on the Mac's side. Here I use a small script which fixes permissions and does the build and copy job.
If I would be a pure Windows user, I would prefer one of the other options. That's what I like on AB - it allows flexible solutions for most problems :-)
Hi David
The only thing that works, is moving service-worker-global.js via AB Filemanager to app/scripts
Caching breaks, when there are double dots in the offlineFundamentals paths. Furthermore, if we would link service-worker.js vial Filemanager, it would be executed twice: By the generated link in index.html and when the script is registered by the global script:
So at least service-worker.js has to reside in the www folder.
I digged further into it an successfully implemented the following scripts:
https://css-tricks.com/serviceworker-for-offline/
After this, the app runs fluently, even with a cut network connection. Here is the complete procedure:
Add this to AppOptions/HTML/CustomMetaData:
Copy service-worker-global.js to the www folder:
Copy service-worker.js also to the www folder
Edit the offlineFundamentals array in service-worker.js. It should contain all your views and all image resources. All other dependencies are cached automatically then:
If everything is OK, you can track the service worker's cache management in the console of e.g. Firefox Dev Edition:
Hi,
I am still experimenting with PWAs under iOS. Unfortunately, the App does not cache image resources, once the network connection is lost.
I tried to install the Corodva Service Workers plugin, but it throws an error during built - looks like it is outdated and not really usable anymore.
Would it be possible to implement Service Worker's Caching on Angular level?
https://angular.io/guide/service-worker-intro
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.