We are building a web app that has to be used as a standalone / homescreen app. In Chrome and Safari we can detect if it is viewed from the browser or from native-like browser container with either window.navigator.standalone or window.matchMedia('(display-mode: standalone)'). Neither option seems to work with the default Android stock browser/Samsung Internet. Furthermore, we are also not able to use start_url in manifest.json, because we need to pass a token to the homescreen app that is unique per user.
Is it possible to detect if the app is opened from the homescreen when it was added using the android stock browser?
Related
- Check if web app is added to home screen on Android (works only with chrome on android)
- Detect if page is viewed in samsung stock browser or as a standalone web app (unanswered)
- Bug report: Does not detect the display-mode style
from Detect web app running as homescreen app on Android Stock Browser
No comments:
Post a Comment