samples icon indicating copy to clipboard operation
samples copied to clipboard

Native app install banner not showing

Open Naboum opened this issue 8 years ago • 15 comments

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

Naboum avatar Jul 06 '16 16:07 Naboum

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 .

PaulKinlan avatar Jul 06 '16 17:07 PaulKinlan

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 ?

Naboum avatar Jul 07 '16 09:07 Naboum

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.

Naboum avatar Jul 07 '16 15:07 Naboum

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.

SeanHayes avatar Dec 10 '16 02:12 SeanHayes

Hi, I'm working on my native app install banner (android), but the page why will take refreshing multiple times. Anyone can help me.

SivanKarthick avatar Jun 14 '17 09:06 SivanKarthick

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

Kiruwagaka avatar Aug 25 '17 10:08 Kiruwagaka

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.

fpg1503 avatar Aug 31 '17 18:08 fpg1503

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.

araphiel avatar Oct 11 '17 16:10 araphiel

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.

zamanafzal avatar Dec 18 '17 09:12 zamanafzal

It worked for me on localhost when I had these steps done:

  1. Uninstall app if already installed.
  2. Clear localhost cache data.
  3. Do mention "id" field inside "related_applications" in the manifest.

dsaket avatar Apr 26 '18 10:04 dsaket

I'm so angry! ( I've spent two hours and can't enable this. At such time I don't believe a tech.

asamats avatar May 28 '19 17:05 asamats

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.

outprogs avatar Aug 09 '19 15:08 outprogs

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.

anupbelambe avatar Oct 10 '19 04:10 anupbelambe

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?

cammytang avatar Nov 26 '21 07:11 cammytang

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

adar2378 avatar Dec 15 '23 15:12 adar2378