Page 1 of 1

start a progressive web app PWA ?

Posted: 16 Apr 2020 07:21
by Friedhofsblond
entschuldig für mein google-englisch :oops:
hallo,
ich möchte eine PWA mit automagic starten - geht das ?
Das wäre für mich ein einfacher weg eine web-app im fullscreen zu starten.
Die Kiosk-browser-app funktioniert nicht gut. der inhalt wird nicht sauber aktualisiert.

Danke für eine Antwort

sorry for my google english
Hi there,
I want to start a PWA with automagic - is that possible?
That would be an easy way for me to start a fullscreen web app.
The kiosk browser app is not working well. the content is not updated properly.

Thanks for an answer ;)

Re: start a progressive web app PWA ?

Posted: 19 Apr 2020 15:30
by Desmanto
I maybe don't get it correctly, but doesn't it just require a web link? Just use action Open Url in Browser, put the link and use the browser you want, example Chrome.

Re: start a progressive web app PWA ?

Posted: 20 Apr 2020 06:47
by Friedhofsblond
Hello,
no, it's not a simple URL.
"By saving to desktop", a web app link is created in the fullscreen.
Look here:

Hallo,
nein, es ist keine einfacher URL.
"Durch das Speichern auf Desktop", wird eine Web-App-Link im Fullscreen angelegt.
Siehe hier:
1.jpg
1.jpg (31.67 KiB) Viewed 13608 times
2.jpg
2.jpg (33.59 KiB) Viewed 13608 times
3.jpg
3.jpg (25.84 KiB) Viewed 13608 times

Re: start a progressive web app PWA ?

Posted: 20 Apr 2020 06:52
by Friedhofsblond
4.jpg
4.jpg (35.11 KiB) Viewed 13607 times
Web-App-Link in Fullscreen:
5.jpg
5.jpg (26.94 KiB) Viewed 13607 times

Re: start a progressive web app PWA ?

Posted: 20 Apr 2020 16:22
by Desmanto
Ok, now I see it already. Starting PWA from home screen will make it full screen and behaves just like native apps, although the PWA is actually opened by Chrome.

AFAIK from googling, the only way to execute the PWA full screen, is to add them to home screen and launch from there. If you have some launcher that support config exporting, such as nova launcher; you can export the configuration, take a peek at the config and get the intent. Example, nova export to /storage/emulated/0/data/com.teslacoilsw.launcher/backup/{datetime}.novabackup. Open this using zip explorer (I use MiXplorer) > Explore > Open the Launcher.db using SQLite editor (again, SQLite from MiXplorer), table "favorites" > find the PWA shortcut, you can see the intent there.

Example, I add 2048 game

Code: Select all

#Intent;action=android.intent.action.MAIN;category=com.android.launcher3.DEEP_SHORTCUT;launchFlags=0x10200000;package=com.android.chrome;component=com.android.chrome/com.google.android.apps.chrome.Main;l.profile=-1;S.shortcut_id=aa0b12a5-0e73-44e7-b670-2fc9f8ff2398;end
I thought I can replicate this in Start Activity, but seems to be protected by some permission or restriction. Some googling also say there is the restrition to home screen launcher shortcut only. Maybe someone can figure it out how to launch the shortcut.

So the only way to launch it is to use Control UI on Home Screen. Add the PWA to home screen first. It is better to add all the PWA shortcut to the same home screen page. Then to launch it, use action Show Home Screen, choose the page where the shortcut is. And the use Control UI to click at that home screen, most launcher protect their UI, so have to use click(x,y) version.

Re: start a progressive web app PWA ?

Posted: 29 Apr 2020 14:59
by Desmanto
I just discover new way to start the PWA link. Unfortunately you still need additional app as the plugin, IntentTask. I have explained it here : viewtopic.php?f=5&t=8674&p=27947#p27947