[Bug] Android App Links deeplink blocked (Custom Tabs)
See original GitHub issueHi team, š Iām using Android App Links; the official way of doing deep linking since Android API 23. In that scenario, the domains are previously verified by Android at -user application- install time and their intent-filters are approved or not. Once verified, visiting a link that matches those intent-filter criteria, would invoke their app without asking the user for choosing one app.
When visiting a callback URL such as āhttps://myapp.com/callbackā the Chrome browser redirects successfully without further action. On Firefox, thatās not the case. Because the URL doesnāt have any content, as itās meant to be used only for registering that redirect, Firefox displays a āNot found.ā text and white page in the custom tab, and unless I select āOpen in appā from the menu, I wonāt be redirected to the app.
The question for you is, how is this menu option intuitive for someone that just installs the Firefox browser?.
We have customers that are losing conversion rates because of this design decision. Their users donāt understand how to log in to their applications after they come across this white page. And I couldnāt find any official documentation on it that I could share with them.
Steps to reproduce
- Create an android application targeting as min API android version 23.
- Register an intent filter that matches against a callback URL you can redirect to from your site.
- Set
autoVerify=true
so the domain verification happens at install time. - Host the assets links file in the well-known directory of your domain, using the hash for the key you are using to sign the APK.
- Install a release in the device, making sure it was signed with the same key from the previous step. (All this is detailed in the android docs linked at the top).
- Run your app, call a custom tab that opens a site with a button that when clicked would invoke that callback URL youāve registered in the intent-filter.
- Watch how firefox ignores the redirect when you click the button.
- Click the āOpen in appā menu option and watch how it redirects successfully.
Iām testing this on a sample app using the Auth0 SDK.
Expected behavior
Redirect back to the app automatically, without additional user action.
Actual behavior
The page shows content loading error āNot found.ā and the user has to click the overflow menu ...
and select āOpen in appā for the app to successfully receive the intent.
What Iād expect from Firefox is to at least check those apps that have officially registered their intent-filters using App Links and not thinking twice about opening it on that same browser tab or in an external app. The domain has been already verified by the OS at install time using the hosted .well-known/assetslinks.json
file, so the deep link should be trusted.
Iāve also tested first enabling the āOpen links in appsā but that didnāt change anything, at least when used from a Custom Tab.
Device information
I tried this on a Pixel 2 emulator with Google Play Services, running Android 28. Iāve installed the latest Firefox app from the Playstore at that time (yesterday). I donāt think thatās the ānightlyā version, but rather the classic. The version name according to the Playstore listing is 80.1.3
.
- Android device: Pixel 2, with Google Apps installed. Android API 28.
- Fenix version: ?
Related links:
- https://support.mozilla.org/en-US/kb/set-firefox-android-open-links-native-apps
- https://support.mozilla.org/en-US/questions/1297628
āIssue is synchronized with this Jira Task
Issue Analytics
- State:
- Created 3 years ago
- Reactions:21
- Comments:31 (11 by maintainers)
Hi team, any updates on this matter?
Info for the others here: @rocketsroger and I had a chat and he looked at our app & the login. A summary of the chat:
Edit: This is how I implemented a workaround, disallowing Firefox: