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

Deep link gives ERR_UNKNOWN_URL_SCHEME by default #598

Open
The-First-King opened this issue Jan 24, 2024 · 12 comments
Open

Deep link gives ERR_UNKNOWN_URL_SCHEME by default #598

The-First-King opened this issue Jan 24, 2024 · 12 comments
Labels
bug Something isn't working

Comments

@The-First-King
Copy link

The-First-King commented Jan 24, 2024

Description

It's not possible to add new account in DAVx5 when using Fulguris web-browser due to the following error shown below.

Web page not available

The web page at at.bitfire.davdroid:/oauth2/redirect?state=abc&code=abc&scope=https://www.googleapis.com/auth/calendar%20https://www.googleapis.com/auth/carddav could not be loaded because:

net::ERR_UNKNOWN_URL_SCHEME

NOTE: Last time it might be working fine with Fulguris v1.9.13 (not sure). But the Android System WebView version was different. It has been tested in the middle of October 2023.

Environment

  • Device: any
  • OS: LineageOS
  • Version: 19.1

To reproduce

Steps to reproduce the behaviour:

  1. Open DAVx5 and click on the “+” button.
  2. Select the radio bar with Google Contacts / Calendar and click the “LOGIN” button.
  3. In the Google account text field type the e-mail address and click enter button on the keyboard to proceed with redirection. Fulguris web-browser will be opened.
  4. After confirming Google account’s credential the error message will appear.

Expected behaviour

Redirection back to the DAVx5 application should work after Google authentication completes in Fulguris.

Workaround

The problem is not present when changing the default web-browser in Android OS from Fulguris to Jelly (default web-browser in LineageOS).

@The-First-King The-First-King added the bug Something isn't working label Jan 24, 2024
@Slion
Copy link
Owner

Slion commented Jan 24, 2024

I don't think anything has been changed in Fulguris in this regard lately. Also I believe the error you are getting comes from the WebView itself. Though I'm confident this could be worked around in Fulguris somehow. Unlikely to look at it any time soon however.

@The-First-King
Copy link
Author

Yea, it may be related to the WebView version. Currently, I'm using the latest version 120.0.6099.210. The default version is disabled, but it is 112.0.5615.48.

When I used a workaround, I disabled both Fulguris and WebView v120.0.6099.210. It works with Jelly and WebView v112.0.5615.48 i.e. how it would be if I wouldn't install Fulguris and the latest WebView version.

@The-First-King
Copy link
Author

It appears that the Dropbox plugin for Ghost Commander is also impacted by the same problem. Good news - it doesn't related to the WebView implementation. Fulguris v1.9.8 is working fine. It looks to be related to some regression in the web-browser with permission level requests.

@The-First-King
Copy link
Author

I have found an exact release when the problem appears. It is Fulguris v1.9.17. The last working version is 1.9.16.

Fulguris doesn’t ask for permission to open a third party application, and this behavior is causing the “net::ERR_UNKNOWN_URL_SCHEME” error message.

@Slion
Copy link
Owner

Slion commented Mar 8, 2024

Nice investigation. Try change the Launch app option in default domain settings to Ask or Yes and see if that helps.

@The-First-King
Copy link
Author

Indeed, it works well now! Just tested with the latest Fulguris v1.9.24.

@Slion
Copy link
Owner

Slion commented Mar 8, 2024

Ho dear, I should have thought of that earlier really. I've had such deep links issues myself lately too. I just did not connect the dots. Launch app option should be set to Yes by default as that's what most people need and expect.

Did you try with both Yes and Ask? Did it work as expected in both cases?

Again, good job on that investigation and thanks for supporting Fulguris.

@The-First-King
Copy link
Author

I have tested both options with Ask and Yes. They are both working.

@Slion
Copy link
Owner

Slion commented Mar 8, 2024

Related to #548, #542.

@Slion Slion changed the title Unable to add new account in DAVx5 Deep link gives ERR_UNKNOWN_URL_SCHEME by default Mar 8, 2024
ZhymabekRoman added a commit to ZhymabekRoman/Fulguris that referenced this issue Mar 20, 2024
@Slion Slion closed this as completed in 98d0481 Mar 21, 2024
@The-First-King
Copy link
Author

Redirection to 3rd party apps are no longer working after the fix. Now it doesn't matter what is set Yes or Ask in default domain settings.

@Slion
Copy link
Owner

Slion commented Apr 3, 2024

That's not cool. What do you get then?

@The-First-King
Copy link
Author

The-First-King commented Apr 3, 2024

API request authorization is appearing:

01

When tapping Allow button, nothing happens. No errors, no redirection, or anything,

02

Unfortunately, the latest version of Fulguris is not usable in this scenario. Just downgraded it back to 1.9.24 release.

@Slion Slion reopened this May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants