Android – how to test whether the native app installation banner is valid
hello everyone,
I have created a native app install banner for my website that meets the following conditions:
>Have a web application manifest file. > provide services through HTTPS
My manifest.json file also meets the following additional conditions:
>A short_ Name. > name (used in banner prompts). > a 192 × 192 PNG icon, your icon declaration should contain a MIME type image / PNG. > a related_ Applications object that contains information about the application
So my manifest.json file looks like this:
{
"short_name": "test",
"name": "test test",
"prefer_related_applications": true,
"related_applications": [
{
"platform": "play",
"id": "secret"
}
],
"icons": [
{
"src": "appicon-192x192.png",
"type": "image/png",
"sizes": "192x192"
},
{
"src": "appicon-96x96.png",
"type": "image/png",
"sizes": "96x96"
},
{
"src": "appicon-48x48.png",
"type": "image/png",
"sizes": "48x48"
}
]
}
I also added < link rel = "manifest" href = "/ manifest. JSON" > to each page
So I think it should be feasible, but I want to make sure everything is normal. How can I test it, because the most important criteria are:
>Users visit twice in two days of two weeks
This means that in order to test whether it is really effective, I must visit the website within 2 days.. must there be another way?
I hope someone knows how to test this
Thank you in advance
resolvent:
Sample pages referencing Google: https://googlechrome.github.io/samples/app-install-banner/
According to my own experience, this banner is not as direct as you think
The sample page claims, but I didn't find it helpful to force the display of banners
The banner ad will only be displayed once a day, which is good for the user experience, but not so good for debugging (since the chrome flag doesn't work)... I will reinstall chrome debugging on my test equipment every time I need it. My colleagues have an idea of quickly forwarding the system date / time, which I have never tried
I hope this will help
for example