samples
samples copied to clipboard
Native app install banner not showing
Hello, I'm trying to add a native app install banner like shown here
My manifest file looks like this
I know that my file is parsed by chrome because if I make a mistake inside the json file on purpose, it gives an error like this : "App banner not shown: play1 application is not supported on Android"
I'm also using https, so I don't see what could be the problem. However, I don't have a service worker registered, because in the docs, it says, to add a native app install banner : "The criteria are similar to the Web App install banner except for the need of a Serivce Worker:" So I guess I don't need to create a service worker for this to work right ?
EDIT : please delete or close this issue, I created a new one aiming at the real problem here
Have you got a demo I can test? It works for me when I use the sample.
On Wed, 6 Jul 2016 at 17:19 Naboum [email protected] wrote:
Hello, I'm trying to add a native app install banner like shown here https://developers.google.com/web/updates/2015/03/increasing-engagement-with-app-install-banners-in-chrome-for-android
My manifest file looks like this http://storage8.static.itmages.com/i/16/0706/h_1467821105_6821380_d1e2590ee4.png
I know that my file is parsed by chrome because if I make a mistake inside the json file on purpose, it gives an error like this : "App banner not shown: play1 application is not supported on Android"
I'm also using https, so I don't see what could be the problem. However, I don't have a service worker registered, because in the docs, it says, to add a native app install banner : "The criteria are similar to the Web App install banner except for the need of a Serivce Worker:" So I guess I don't need to create a service worker for this to work right ?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/GoogleChrome/samples/issues/384, or mute the thread https://github.com/notifications/unsubscribe/AACxxqvcs9LSF6lF6ERRyozT1u-5uwODks5qS9V-gaJpZM4JGQUm .
I'm working on my local environment unfortunately... So I don't need to register a service worker for the native app install banner ? For testing, I'm also enabling chrome://flags/#bypass-app-banner-engagement-checks like stated in the FAQ but it's saying that I need a service worker for this flag to work, so even if I want the native app install banner, I still need a service worker registered for testing purposes ?
Nevermind, it's working now ! Not sure why though, I was using my android device and didn't work, but now using an emulator made it work.
I'm having the same issue with a manifest deployed on my prod site. Even though I've visited my mobile site several times in the past few days, and even though I disabled chrome://flags/#bypass-app-banner-engagement-checks
, I've never seen the native install banner. I'm using exactly the same set of data as OP.
I'm using Chrome 54.0.2840.85 on a Galaxy S5 running Android 6.0.1.
Hi, I'm working on my native app install banner (android), but the page why will take refreshing multiple times. Anyone can help me.
Any news on this issue? i'm currently having the same problem, I've hosted the page in a subdomain and the banner won't show up on chrome (both on android and iphone).
Here is my manifest: https://pastebin.com/BTVaZFmc
I don't know if that's the issue for you but it took me a long time to find out that the banner won't show up if the app is already installed. Uninstalling it did the trick.
https://googlechrome.github.io/samples/app-install-banner/related-applications/index.html
When I test this page using BrowserStack & the '#bypass-app-banner-engagement-checks' flag enabled - I still can't get this to work.
Can anyone offer any insight into this or working examples of this in action?
The docs say a service worker isn't required but now I'm starting to suspect otherwise.
i m having the same issue. add the manifest file but banner is not showing. app is hosted on https and other requirements are fulfilled.
It worked for me on localhost when I had these steps done:
- Uninstall app if already installed.
- Clear localhost cache data.
- Do mention "id" field inside "related_applications" in the manifest.
I'm so angry! ( I've spent two hours and can't enable this. At such time I don't believe a tech.
Hello,
I have checked this recently, and seems that native app prompt is not working for me.
PWA works fine.
"prefer_related_applications": false, "related_applications": [ { "platform": "play", "url": "app.url", "id": "app.id" }, { "platform": "itunes", "url": "app.url" }, { "platform": "web", "url": "app.url" } ]
Once i added ""prefer_related_applications": true" is stopped working. Do you have any news on this.
I am on Version 77.0.3865.90 (Official Build) (64-bit). I was able to get the app install banner once. But once I installed and uninstalled the application, it stopped showing again. I tried clearing the all cache, site data, unregistering serice worker. Also enabling chrome://flags/#bypass-app-banner-engagement-checks doesn't seem to be helping in getting the install banner back. This is required for testing. Also in case of production environment, how/when will user see the install banner again (in case the application was installed and uninstalled once). Appreciate any help on this.
i m having the same issue. All ther requirements are fulfilled. Use the sample: https://googlechrome.github.io/samples/app-install-banner/related-applications/index.html Never seen the banner. Any one work?
This thing does not work at all on mobile! https://googlechrome.github.io/samples/app-install-banner/related-applications/index.html does not show any banner on chrome android, enabled chrome://flags/#bypass-app-banner-engagement-checks