digitalfabrik / integreat-app

React JS and React Native App for Integreat
https://integreat.app
MIT License
45 stars 15 forks source link

Banner to install app from store is not displayed when using web-app #2805

Open dkehne opened 1 month ago

dkehne commented 1 month ago

Describe the Feature

When the web app is opened on smartphones and you do not have Integreat installed as app, it should show a banner/notice that Integreat is available as download from the store(s).

This is (probably) currently happening on iOS if you have never tapped the banner away.

We should implement it in Android as well, and maybe see if we can show some kind of banner for iOS a couple of weeks after having tapped it away.

Side note, in iOS, the banner is only shown on real devices, not in emulators.

LeandraH commented 2 weeks ago

I thought I might find something in the translations about this banner but I didn't. I think a design would be a good idea.

steffenkleinle commented 2 weeks ago

I thought I might find something in the translations about this banner but I didn't. I think a design would be a good idea.

@LeandraH we never provided the banner ourselves. This is something that should be displayed automatically by browsers using corresponding meta tags in the web app, see e.g. for ios here: https://developer.apple.com/documentation/webkit/promoting_apps_with_smart_app_banners

LeandraH commented 2 weeks ago

It's still there in iOS but you have to reset the phone if you've ever dismissed the banner on your phone. I'm not quite willing to completely wipe my phone to check since the banner to open the page in the app is the same banner according to Apple. And the banner is obviously not shown in the emulator :(

IMG_ADB1EF45C13C-1

It looks like Android never really implemented this banner. Or does someone with an Android remember things differently?

vthejay commented 3 days ago

Android: With a brand new device, Samsung A23 5G: Wenn I open integreat.app on the browser, there is no banner appearing, asking me to install the app. This happens on the landing page and also when I choose a region. Of course this is a brand new device and the app is definitely not installed.