[Bug] S.browser_fallback_url in intent is braking the behavior.
Steps to reproduce
- install google maps on android device
- Go to demo page https://fallbackproblem.glitch.me/
- click on link under "with S.browser_fallback_url"
OR
- embed link to intent in html with
S.browser_fallback_urlfor exempleintent://maps.google.com/geo:0,0?q=mcdonalds;/#Intent;scheme=geo;package=com.google.android.apps.maps;S.browser_fallback_url=https%3A%2F%2Fgoogle.com;end; - click on it
Expected behavior
user should see opened google maps like in second example without S.browser_fallback_url
Actual behavior
user is redirected to S.browser_fallback_url without openning google maps app in case of demo its google.com
Device information
- Android device: OnePlus 6t (Android 10) AND Xiaomi Redmi Note 7 (Android 9) AND SM-G950F (android 9)
- Fenix version: 81.1.4
┆Issue is synchronized with this Jira Task
Is this a bug in the site? This also doesn't work on Desktop firefox.
Well @liuche it wont work on desktop firefox as intents are Android thing, and also it work properly on Android Chrome.
hey @agi I'm not sure whether GV or Fenix would handle intents encoded in the url.
https://developer.chrome.com/multidevice/android/intents
Is that something that GV would pass back to Fenix, or is there something we would need to do to handle it GV side? It seems to straddle both sides I guess, so I'm not sure where this should go.
@liuche This is handled in android-components: https://searchfox.org/mozilla-mobile/rev/253e38f3ff62bded9f8692002bb4582c3f0c6800/android-components/components/feature/app-links/src/main/java/mozilla/components/feature/app/links/AppLinksUseCases.kt#129
Whats the status of that?
Moved to bugzilla: https://bugzilla.mozilla.org/show_bug.cgi?id=1795161
Change performed by the Move to Bugzilla add-on.
Took a quick look and this is due to "Open links in apps" not turned on in settings. I have seen similar issues as well where the user doesn't know this switch exists. I'll start a conversation into how we should surface this functionality better. That said, this is working as expected.