FilipChalupa / react-use-pwa-install

https://www.npmjs.com/package/react-use-pwa-install
ISC License
5 stars 0 forks source link

Support for iOS ? #3

Open KarlBaumann opened 3 years ago

KarlBaumann commented 3 years ago

Read more about it here https://www.netguru.com/codestories/pwa-ios

FilipChalupa commented 3 years ago

Native install flow can't be triggered on iOS. Only instructing user how to "Add to home screen" is possible. Do you have any specific idea what to implement?

As the article suggests it requires user agent sniffing which is risky for forward compatibility, custom ui including instructions which can easily change in newer iOS versions. All that and Apple PWA support is not well documented and often buggy.

KarlBaumann commented 3 years ago

True, it is risky and it sucks on iOS. Showing a nice popup that looks native is still better than nothing. You could add it as a config parameter so those who want it, can simply enable it.