Skip to content
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

Some Android features launch Chrome instead of the user’s default browser #8

Open
csadilek opened this issue Jan 17, 2024 · 14 comments

Comments

@csadilek
Copy link
Collaborator

Features like Google Search, or Discover, in the pre-installed Google application ignore the user’s default browser choice: links to websites outside of the application are always opened in Chrome, regardless of the default browser. This is a widely used application, with additional entry points from built-in features such as the search bar on the home screen and app launcher. Each time it opens a link in Chrome, a user is driven away from their default browser.

All built-in applications and affordances that open external links should open them in the user’s default browser.

@S0ulf3re
Copy link

S0ulf3re commented Jan 19, 2024

In Google Search within the Google app, the default browser can be set to open links in the browser by going to profile icon -> settings -> general, then toggling "Open web pages in the app" off. This will instead send them to your browser app.

@lol768
Copy link

lol768 commented Jan 20, 2024

In Google Search within the Google app, the default browser can be set to open links in the browser by going to profile icon -> settings -> general, then toggling "Open web pages in the app" off. This will instead send them to your browser app.

The UX is strictly worse if you do this. Firefox on Android has perfectly good support for the Android Custom Tabs protocol which works just fine with most other apps and allows for webpages to be opened in a lightweight view that inherits my settings, add-ons etc and that I can launch into a full Firefox Android session if I want to. If you follow these instructions, it will use a basic intent and launch the app separately which will pull you out of the flow of the search results or content feed (for e.g. Discover).

Every other app apart from the crap Google ship is capable of using resolveActivity to figure out the user's default browser and then using that for custom tabs support if the user's default browser app supports it. It's about 3 lines of code; there's no excuse.

@UndarkAido
Copy link

AFAIK it's impossible to use Firefox in Google News and Meta apps

@LinAGKar
Copy link

Don't know if it fits here, but Steam on Android also forces users over to Chrome instead of the default browser when opening links.

@UndarkAido
Copy link

UndarkAido commented Jan 20, 2024

@LinAGKar Some of Steam's links open in the default browser and some force Chrome, weird

@resuna
Copy link

resuna commented Jan 22, 2024

I am regularly copying and pasting URLs from Chrome to Firefox because of this.

@ggould256
Copy link

Fascinatingly if you uninstall Chrome from the device then Discover, at least, does respect the default browser -- that is, it tries Chrome and if that isn't available it falls back to the default browser.
So it's not even that they've missed some crucial call to respect the default browser.

@mstarongithub
Copy link

Fascinatingly if you uninstall Chrome from the device then Discover, at least, does respect the default browser -- that is, it tries Chrome and if that isn't available it falls back to the default browser. So it's not even that they've missed some crucial call to respect the default browser.

Yep. Other apps suddenly respect your default browser too after removing Chrome (be it disable or uninstall), even things like the article view on the Pixel series' launcher

@UndarkAido
Copy link

@ggould256 Tap your avatar > settings > other settings > disable "Open web pages in the app"

@ading2210
Copy link

ading2210 commented Jan 25, 2024

Many Android apps made by Google outright refuse to open links in browsers other than Chrome. The Google Classroom app is an example of this:

image

@sibbl
Copy link

sibbl commented Jan 25, 2024

Google News is another example of this. Even when disabling the Chrome app in Android, it shows websites in some embedded version of Chrome instead of using the default browser as I'd expect it to do. There's no setting to disable this behavior.

@rstat1
Copy link

rstat1 commented Jan 25, 2024

AFAIK it's impossible to use Firefox in Google News and Meta apps

For Google News clicking the View Original Webpage link in the menu of an article opens it whatever your default browser is. So it's not completely impossible

@lol768
Copy link

lol768 commented Jan 25, 2024

For Google News clicking the View Original Webpage link in the menu of an article opens it whatever your default browser is. So it's not completely impossible

Right, which you have to do once it's already opened and rendered in-app using Chrome, for each and every article. It also launches a standard intent instead of a lightweight custom tab hosted within Google News

@youngacinonyx
Copy link

Hi! I was having trouble creating a widget to open Google News using Firefox, but I managed to find a workaround. While it's kinda ugly and not the ideal solution, it works, so I thought it was worth sharing. Here's what I did:

First, go to the settings of your phone and make sure Firefox has permission to add icons to the home screen. In my case, I had to follow this path: Settings - Apps - Manage apps - Firefox - Other permissions - Home screen shortcuts - Always allow

After that, follow these steps:

  • Disconnect from any network (wifi and mobile data)
  • Open Firefox
  • Open a new (empty) tab
  • Type news.google.com in the address bar and confirm
  • Tap on the three-dotted icon on the right of the address bar
  • Tap on Add to Home screen
  • Change the name to News or something similar
  • Tap on Add
  • Open Firefox again
  • Close the tab you've previously opened

If everything worked correctly, you should have a new icon that opens Google News inside Firefox. For some reason, if you try to do this while connected to a network, you will be able to create the icon, but it will not open inside Firefox (even if the native Google News app is uninstalled and both Chrome and Google apps are disabled).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests