PWA: How to programmatically trigger : “Add to homescreen”? on iOS Safari

iOS – Safari currently don’t support Web app install banner, like in Android – Chrome. There is no way to programatically trigger install banner in Android as well, except for the case when you catch the beforeInstallPromot and use that to show the banner. In the linked answer, you can check on the alternate option … Read more

What features do Progressive Web Apps have vs. native apps and vice-versa, on Android [closed]

TL;DR – As of Feb 2017, Progressive Web Apps are a sufficiently powerful platform that Twitter has moved all of their mobile web traffic to a React PWA. As of August 2016, Progressive Web Apps actually offer more hardware access than commonly thought. Here’s a screenshot of whatwebcando.today from my Chrome 52 stable on Android: … Read more

Options for testing service workers via HTTP

In general, you need to serve both your page and your service worker script via HTTPS in order to use service workers. The rationale is described at Prefer Secure Origins For Powerful New Features. There’s an exception to the HTTPS requirement in place to facilitate local development: if you access your page and service worker … Read more

How to Detect Browser Back Button event – Cross Browser

(Note: As per Sharky’s feedback, I’ve included code to detect backspaces) So, I’ve seen these questions frequently on SO, and have recently run into the issue of controlling back button functionality myself. After a few days of searching for the best solution for my application (Single-Page with Hash Navigation), I’ve come up with a simple, … Read more