Search…

X3 Photo Gallery Support Forums

Search…
 
vhero
Topic Author
Posts: 9
Joined: 20 Sep 2018, 02:09

use X3 as PWA

22 Oct 2020, 03:50

Hello!

I'm interested:
1. whether X3 can be used as PWA.
2. Is it possible to show the visitor a banner after some time (delayed) that will allow the X3 to be placed on the home screen (bookmark- add to home screen icon  -  for mobile devices)  ?

Best regards,
Vhero
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: use X3 as PWA

22 Oct 2020, 07:28

vhero wrote:1. whether X3 can be used as PWA.
With PWA, I assume you mean "progressive web app"? All modern mobile-friendly javascript-based websites are basically "progressive web apps". The only difference is that some PWA's can perhaps work without an internet connection, but X3 will not work without internet.
vhero wrote:2. Is it possible to show the visitor a banner after some time (delayed) that will allow the X3 to be placed on the home screen (bookmark- add to home screen icon  -  for mobile devices)  ?
There are some options for this, but it definitely does NOT work on iPhone/iOS at least.
https://developer.mozilla.org/en-US/doc ... ome_screen

On iPhone, adding to home screen is done manually by the user from Safari share options.
 
vhero
Topic Author
Posts: 9
Joined: 20 Sep 2018, 02:09

Re: use X3 as PWA

22 Oct 2020, 08:45

>>>There are some options for this, but it definitely does NOT work on iPhone/iOS at least.

>>>>https://developer.mozilla.org/en-US/doc ... ome_screen


OK. Can you implement this in X3 (to work with Android) ?

This would greatly increase the traffic to X3 sites, due to the fact that now users have much more access via mobile devices.

It is much easier when the shortcut is on the home screen of the mobile device.
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: use X3 as PWA

22 Oct 2020, 23:24

I might consider this in the future, but currently this is not something I will add to X3 because it requires the following which you must do yourself:
https://developer.mozilla.org/en-US/doc ... A2HS-ready
mozilla wrote:
  • To be served over HTTPs — the web is increasingly being moved in a more secure direction, and many modern web technologies (A2HS included) will work only on secure contexts.
  • To have a manifest file with the correct fields filled in, linked from the HTML head.
  • To have an appropriate icon available for displaying on the Home screen.
  • Chrome additionally requires the app to have a service worker registered (e.g., so it can function when offline).
I could perhaps assist with Javascript if you already have the above in place, but I have no means to include the above into X3.