Skip to content

Custom tab handling not taking packages other than Chrome into account #6692

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
eschoenawa opened this issue Feb 11, 2025 · 1 comment · Fixed by #6705
Closed

Custom tab handling not taking packages other than Chrome into account #6692

eschoenawa opened this issue Feb 11, 2025 · 1 comment · Fixed by #6705

Comments

@eschoenawa
Copy link

[READ] Step 1: Are you in the right place?

Issues filed here should be about bugs in the code in this repository.
If you have a general question, need help debugging, or fall into some
other category use one of these other channels:

  • For general technical questions, post a question on StackOverflow
    with the firebase tag.
  • For general Firebase discussion, use the firebase-talk
    google group.
  • For help troubleshooting your application that does not fall under one
    of the above categories, reach out to the personalized
    Firebase support channel.

[REQUIRED] Step 2: Describe your environment

  • Android Studio version: Not relevant
  • Firebase Component: App Distribution
  • Component version: 16.0.0-beta14

[REQUIRED] Step 3: Describe the problem

The opening of Custom Tabs for sign-in only supports the Chrome browser. On a device with only Chromium installed, the full browser is opened and not a custom tab, even though Chromium supports Custom Tabs

Steps to reproduce:

Run an app with Firebase distribution on a device that uses Chromium (package org.chromium.chrome.stable) and doesn't have Chrome (com.android.chrome) installed. Make sure the user is not yet signed in, so the signin page is opened when checking for updates. When starting the sign-in browser, instead of using a custom tab that is supported by Chromium, the full browser is opened.

Summarized conditions to reproduce the issue:

  • Chromium (package org.chromium.chrome.stable) is installed and the default browser
  • Chrome (com.android.chrome) not installed
  • User not logged in yet (Login view will be opened instead of checking for updates)

Relevant Code:

FirebaseAppDistribution.getInstance().updateIfNewReleaseAvailable()

Suggested fix

Instead of checking for only the Chrome package like you currently do here, use the recommended way to check for custom tabs, or check for Chromium packages (stable, nightly, etc.) separately.

@lehcar09
Copy link
Contributor

HI @eschoenawa, thank you for reaching out. I was able to reproduce the behavior you shared. I'll raise this to our engineers and share your suggestion on how to fix the issue. Thanks!

@firebase firebase locked and limited conversation to collaborators Mar 27, 2025
tejasd pushed a commit that referenced this issue Apr 1, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
3 participants