start a progressive web app PWA ?

Post your questions and help other users.

Moderator: Martin

Post Reply
Friedhofsblond
Posts: 14
Joined: 26 Feb 2017 14:56

start a progressive web app PWA ?

Post by Friedhofsblond » 16 Apr 2020 07:21

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 ;)

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: start a progressive web app PWA ?

Post by Desmanto » 19 Apr 2020 15:30

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.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

Friedhofsblond
Posts: 14
Joined: 26 Feb 2017 14:56

Re: start a progressive web app PWA ?

Post by Friedhofsblond » 20 Apr 2020 06:47

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 13506 times
2.jpg
2.jpg (33.59 KiB) Viewed 13506 times
3.jpg
3.jpg (25.84 KiB) Viewed 13506 times

Friedhofsblond
Posts: 14
Joined: 26 Feb 2017 14:56

Re: start a progressive web app PWA ?

Post by Friedhofsblond » 20 Apr 2020 06:52

4.jpg
4.jpg (35.11 KiB) Viewed 13505 times
Web-App-Link in Fullscreen:
5.jpg
5.jpg (26.94 KiB) Viewed 13505 times

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: start a progressive web app PWA ?

Post by Desmanto » 20 Apr 2020 16:22

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.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: start a progressive web app PWA ?

Post by Desmanto » 29 Apr 2020 14:59

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
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

Post Reply