ility detection,
> although some of that may already be available by detecting OS or via some
> Cordova libraries.
>
>
>
> But if the goal is to leverage these new browser APIs in Royale, then it
> comes down to picking the level of integration and creating any wrapping code
> i
y
> detection, although some of that may already be available by detecting OS
> or via some Cordova libraries.
>
>
>
> But if the goal is to leverage these new browser APIs in Royale, then it
> comes down to picking the level of integration and creating any wrapping
> code if desi
Responses inline…
From: Roman Isitua
Reply-To: "users@royale.apache.org"
Date: Saturday, March 19, 2022 at 9:07 PM
To: "users@royale.apache.org"
Subject: Re: Royale support for progressive web apps (pwa)
Actually the goal is to be able to leverage the new browser api's.
A
tates and
> MXML would make it much more efficient to create PWAs. However, I don’t
> have the time to work on that these days.
>
>
>
> My 2 cents,
>
> -Alex
>
>
>
> *From: *Roman Isitua
> *Reply-To: *"users@royale.apache.org"
> *Date: *Monday, M
Royale view states and MXML would
make it much more efficient to create PWAs. However, I don’t have the time to
work on that these days.
My 2 cents,
-Alex
From: Roman Isitua
Reply-To: "users@royale.apache.org"
Date: Monday, March 14, 2022 at 11:17 AM
To: "users@royale.apache.org
Yes. It should be in a similar section to where cordova is.
On Mon, 14 Mar 2022, 12:23 Andrew Wetmore, wrote:
> Roman, when you get this sorted out, let's figure out where in the
> documentation we should explain how to use Royale to create progressive web
> apps. I presume it would go
It works. Thanks Harbs.
The following steps are to be done to convert an app to pwa
1. Create a manifest.json file. Place it in the root folder in
src/main/resources where the index template html file is.
2. Modify the index template html file to reference the manifest.json.
3. Implement a
I’d add it to the init stage of the application.
Actually, in ActionScript, you can get rid of the “load” event listener:
if ("serviceWorker" in window.navigator) {
window.navigator.serviceWorker
.register("/serviceWorker.js")
.then(function(res):void{trace("service worker
Roman, when you get this sorted out, let's figure out where in the
documentation we should explain how to use Royale to create progressive web
apps. I presume it would go alongside explaining how to prepare a Royale
app for use with Cordova to achieve a similar goal.
a
On Mon, Mar 14, 2022 at
One question.
At which point in the code should the below actionscript code be added. Is
it in the sp:Application (assuming I am using spectrum) area ? I.e In the
fx script portion of the mxml ?
On Mon, 14 Mar 2022, 08:45 Roman Isitua, wrote:
> Wow ! I will definitely try this and provide an
Wow ! I will definitely try this and provide an update on the outcome.
On Mon, 14 Mar 2022, 08:42 Harbs, wrote:
> Yes.
>
> You can put that in a script tag in the html.
>
> Here’s an ActionScript equivalent of that code:
>
> if ("serviceWorker" in window.navigator) {
>
Yes.
You can put that in a script tag in the html.
Here’s an ActionScript equivalent of that code:
if ("serviceWorker" in window.navigator) {
window.addEventListener("load", function():void {
window.navigator.serviceWorker
.register("/serviceWorker.js")
>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"))
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
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
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
> 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
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,
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
>
>
>
>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.
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
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
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).
>
I just stumbled on a tutorial on how to create a pwa app using plain html,
javascript and css (i.e. no framework).
I am now forced to ask the question. How can i do this in royale ?
Here is the link
24 matches
Mail list logo