I am trying to embed an “add to desktop” banner using the built-in Google Chrome banner, with this demo as a link.
https://googlechrome.imtqy.com/samples/app-install-banner/basic-banner/index.html
According to the specification, the requirements are as follows:
- the page uses an employee (yes, see below)
- the site uses HTTPS (yes, the site has a valid SSL certificate, and I upload it via HTTPS. chrome shows the site as secure and has a green lock, no errors or warnings in the certificate).
- application announces manifest (yes, see below)
- the manifest has a short name, 144-pixel icon and type "image / png" (yes, see below).
Below is the manifest I am using.
{ "name": "Web app test", "short_name": "Test", "icons": [ { "src": "/resources/launcher-icon-3x.png", "sizes": "144x144", "type": "image/png" } ], "display": "standalone" }
Which contains a short name and a 144-pixel icon like image / png.
The employee I use is a direct copy and paste of this code:
https://github.com/GoogleChrome/samples/blob/gh-pages/service-worker/custom-offline-page/service-worker.js
which was recommended in this article:
https://developers.google.com/web/updates/2015/03/increasing-engagement-with-app-install-banners-in-chrome-for-android?hl=en
The employee has been registered, the manifest is loaded on the page, and the image URL is correct, but the banner does not appear.
I also have a chrome flag: // flags / # bypass-app-banner-engagement-check, so this is not the case when I need to return tomorrow and check that it works. I was able to view the home screens on all the demo versions of Chrome that I checked (this is where I took most of this code), and the latest version of Chrome is installed on my phone.
Is there anything else I'm missing that can block the appearance of the main screen?
Thanks.