0

I managed to create a custom pwa install button in html javascript that works well on an android only based on this documentation: Android Pwa

My current problem is getting it to work on safari ios and chrome for ios.

I have read from my research that browsers like safari do not support pwa installs.

I would now like to ask if there is at this time an alternative to create a custom "Install ios app" button in my PWA. Thank you for your propositions.

1 Answers1

0

As of April 2023, There is no way to automatically install a PWA on iOS, but it can be done manually through the Safari browser menu. That being the case, you'll need to detect whether or not the user is on iOS and if they are, display a different button, one that pops up instructions, similar to those in this screenshot.

enter image description here

Unfortunately, these instructions are only valid for Safari on iOS. If your users are using Chrome (or any other browser on iOS) there's no way to install the PWA. So ideally you also detect the browser, and if they're not using Safari, popup a different set of instructions, ie. that this can only be done in Safari, or hide the button altogether.

Vincent
  • 1,741
  • 23
  • 35