android-components icon indicating copy to clipboard operation
android-components copied to clipboard

[Bug] S.browser_fallback_url in intent is braking the behavior.

Open matios13 opened this issue 6 years ago • 7 comments

Steps to reproduce

  1. install google maps on android device
  2. Go to demo page https://fallbackproblem.glitch.me/
  3. click on link under "with S.browser_fallback_url"

OR

  1. embed link to intent in html with S.browser_fallback_url for exemple intent://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;
  2. 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

matios13 avatar Oct 16 '20 09:10 matios13

Is this a bug in the site? This also doesn't work on Desktop firefox.

liuche avatar Oct 22 '20 00:10 liuche

Well @liuche it wont work on desktop firefox as intents are Android thing, and also it work properly on Android Chrome.

matios13 avatar Oct 22 '20 05:10 matios13

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 avatar Oct 23 '20 05:10 liuche

@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

agi avatar Oct 23 '20 20:10 agi

Whats the status of that?

matios13 avatar Dec 16 '20 10:12 matios13

Moved to bugzilla: https://bugzilla.mozilla.org/show_bug.cgi?id=1795161

Change performed by the Move to Bugzilla add-on.

csadilek avatar Oct 13 '22 21:10 csadilek

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.

rocketsroger avatar Oct 13 '22 22:10 rocketsroger