Support for custom app protocol handlers

Hi Sailfish people!

I have a question about AppSupport. Quite a few of the Android apps I use require a login to happen in the browser and on success they tend to forward to a custom protocol handler that the Android app would normally pick up, say myapp:successToken=XXX. This doesn’t seem to work in Sailfish, the browser reports a wrong URL shape when it sees myapp.

I tried using such a link in an Android browser too but that doesn’t seem to trigger the relevant app either. Android options for “Links to open in this app“ don’t contain the custom protocol options.

Anything I’m missing or is this just not supported yet?

2 Likes

Usually setting the android browser to standard browser should solve this. You could also switch back to sfos browser as standard after that.

To my experience it depends on the android app. Some work with jolla browser, others need android, I also had one that explicitly needed a specific browser (firefox or chrome) and didn’t with Vivaldi, DuckDuckGo or even MS Edge browser.

2 Likes

Is it even possible to set default browser? I always get a prompt.

In Android settings yes. Got to

Settinges → Android Adds Support → tap the version number several times until android settings open.

Now you you can set android default browser under apps (in that android settings).

2 Likes

Thanks a lot! I changed the default browser to Firefox Focus and then it prompted to open the app for the custom protocol as expected.

FWIW it didn’t work with the default browser (which apparently is the Sailfish browser). I expected to see some barebones WebView as an option and switch to that but the default already was the system default (not Android).

I guess the trick might be in using any other browser that is an Android app?

1 Like