Re: Royale support for progressive web apps (pwa)

2022-03-13 Thread Harbs
It shouldn’t be any different than a regular web app. You can add whatever you want to the template index.html file. > On Mar 12, 2022, at 11:53 AM, Roman Isitua wrote: > > I just stumbled on a tutorial on how to create a pwa app using plain html, > javascript and css (i.e. no framework). > >

Re: Royale support for progressive web apps (pwa)

2022-03-13 Thread Roman Isitua
So I am free to modify the generated entry point js file as well ? This does not really look like an ideal solution because each time I recompile the project the generated js file will be overwritten. An ideal solution will be to add support for it in royale sdk. On Sun, 13 Mar 2022, 18:36 Harb

Re: Royale support for progressive web apps (pwa)

2022-03-13 Thread Harbs
No. Why would you need to modify the js file? > On Mar 13, 2022, at 7:47 PM, Roman Isitua wrote: > > So I am free to modify the generated entry point js file as well ? > > This does not really look like an ideal solution because each time I > recompile the project the generated js file will b

Re: Royale support for progressive web apps (pwa)

2022-03-13 Thread Roman Isitua
>From the below link https://www.google.com/amp/s/www.freecodecamp.org/news/build-a-pwa-from-scratch-with-html-css-and-javascript/amp/ The following steps are to be done to convert an app to pwa 1. Create a manifest.json file. 2. Modify the index.html file to reference the manifest.json. 3. Im

Re: Royale support for progressive web apps (pwa)

2022-03-13 Thread Andrew Wetmore
What is the gain of adding the .json file and all that? Doesn't a Royale app compiled for use with JS files run just fine without further modification on a web page? On Sun, Mar 13, 2022 at 3:26 PM Roman Isitua wrote: > From the below link > > > https://www.google.com/amp/s/www.freecodecamp.org/

Re: Royale support for progressive web apps (pwa)

2022-03-13 Thread Harbs
If you want it to work offline with Cache, you will need a service worker, but that is a _SEPARATE_ js file. You don’t need to modify the main JS file. You do need to register the service worker, but that can be done either in the index html file, or in your ActionScript code. > On Mar 13, 2022

Re: Royale support for progressive web apps (pwa)

2022-03-13 Thread Harbs
> What is the gain of adding the .json file and all that? 1. You can make a web app look like a native mobile app. 2. It can work while your mobile device is off line (as long as you cache all the necessary data). > On Mar 13, 2022, at 9:18 PM, Andrew Wetmore wrote: > > What is the gain of ad

Re: Royale support for progressive web apps (pwa)

2022-03-13 Thread Andrew Wetmore
Is it worth enhancing Royale to support that out of the box? On Sun, Mar 13, 2022 at 4:20 PM Harbs wrote: > What is the gain of adding the .json file and all that? > > > 1. You can make a web app look like a native mobile app. > 2. It can work while your mobile device is off line (as long as you

Re: Royale support for progressive web apps (pwa)

2022-03-13 Thread Harbs
IFAIK, the only thing that needs enhancing might be to make sure there’s typedef support for the worker APIs. > On Mar 13, 2022, at 9:56 PM, Andrew Wetmore wrote: > > Is it worth enhancing Royale to support that out of the box? > > On Sun, Mar 13, 2022 at 4:20 PM Harbs

RV: Example mxaplication does not create .js.map files

2022-03-13 Thread Maria Jose Esteve
Hi, In case it is useful to anyone... I got what I needed by configuring the compiler files: pom.xml, HelloWorld.as3proj and asconfig.json. MAVEN: "examples/mxroyale/HelloWorld/pom.xml" (I set "source.map" to true and included it in the "additionalCompilerOptions") ... Apache Royale: Examples:

Re: Royale support for progressive web apps (pwa)

2022-03-13 Thread Roman Isitua
I think it is worth it. Lot of big software houses are adopting pwa's. E.g ms outlook is now a pwa app. On Sun, 13 Mar 2022, 20:56 Andrew Wetmore, wrote: > Is it worth enhancing Royale to support that out of the box? > > On Sun, Mar 13, 2022 at 4:20 PM Harbs wrote: > >> What is the gain of a

Re: Royale support for progressive web apps (pwa)

2022-03-13 Thread Roman Isitua
>From the tutorial the code to register the service worker is as follows: if ("serviceWorker" in navigator) { window.addEventListener("load", function() { navigator.serviceWorker .register("/serviceWorker.js") .then(res => console.log("service worker registered")) .catch(