top | item 37284339

(no title)

jarm0 | 2 years ago

Actually nowadays it's not that bad anymore. Android browser itself offers installable PWA and there is an event called beforeinstallprompt event (https://developer.mozilla.org/en-US/docs/Web/API/Window/befo...), which can be used to perform PWA installation on user interaction. Of course it's not supported in every browser.

iOS is more difficult since user needs to understand that "saving to home screen" is same as installing "app" and there's no way to trigger it programmatically or help user in any other way than with visual illustrations.

discuss

order

callalex|2 years ago

In iOS it’s also buried deep in the “share” menu which makes absolutely no sense as you are not sharing the website with anybody.

kaba0|2 years ago

The share menu is used for everything on ios, I had to get used to it at my first apple device’s case.

One notably stupid usage of the Share option was (I believe it is no longer how it’s done) adding an image to a hidden folder — that’s something you definitely don’t want to share, yet quite easy to accidentally send to someone during this process.

lotsofpulp|2 years ago

That menu does far more than share, such as opening the URL or document or whatever you are viewing in a different app or saving it somewhere.

scarface_74|2 years ago

How is it buried when it’s on the same level as everything else?

scarface_74|2 years ago

> and there's no way to trigger it programmatically or help user in any other way than with visual illustrations.

It literally took a two second Google search

https://web.dev/web-share/

jarm0|2 years ago

Not sure this can be used to "save to home screen" e.g. trigger PWA installation flow like on Android.

siva7|2 years ago

That’s not a PWA. Saving to home screen literally creates a link shortcut which just opens a new tab on your safari app. Apple never supported PWAs.

c-hendricks|2 years ago

This is incorrect.

If the app is a valid PWA, it's displayed like any other app on your device. There is no browser UI, it gets its own entry in your app switcher, etc.