hazuki0x0 / YuzuBrowser

Customizable browser for android
Apache License 2.0
319 stars 96 forks source link

"open in another app" not working in Android 11 #216

Open VDK opened 3 years ago

VDK commented 3 years ago

Describe the bug See Android 11 fixes the convoluted Android 10 workflow for opening links in default apps

To Reproduce Steps to reproduce the behavior:

  1. Add a "open in another app" button to your interface
  2. Click on it and get the prompt that "no apps can perform this action."

Expected behavior Opens the prompt that allows the user to open the url in another app

Device information (please complete the following information):

Additional context Add any other context about the problem here.

peerobo commented 3 years ago

I don't have Android 11 but do you set default for that app?

VDK commented 3 years ago

I used to have yuzu as my default browser but was able to open URLs in other apps through its UI. I now have yuzu no longer set as the default so I get asked to pick whenever I open a link in another app. It seems from the article I cited that the "open in another app" button needs a different implementation in 11. Because I had configured yuzu in 10 to have a button "start activity" button directly linked to my screen reader, but this isn't configurable in 11. The list of apps that can be selected for the "start activity" option is now very truncated.

peerobo commented 3 years ago

I mean set "Open by default" setting in App Info of your screen reader app.

VDK commented 3 years ago

No it's an app that you send URLs to with the share function on apps or in the android 10 version of yuzu through the "open in other app" button. It's not configured to be the default app for anything

ertmuirm commented 2 years ago

I updated to A12 from A10 recently and this function stopped working. Any workarounds people have found?

StOrmCatz commented 1 year ago

I believe I have fixed this issue for both A11 and A12. A12 is a bit interesting in that it appears the app selection prompt is by design no longer allowed. Instead it automatically selects an app that it believes handles it best.

If anyone would like to try my updated version it can be found in #225