AppAuth-Android icon indicating copy to clipboard operation
AppAuth-Android copied to clipboard

Microsoft Edge Support

Open vicpinm opened this issue 2 years ago • 3 comments

Custom Tabs is supported my Microsoft Edge on Android. But when using that browser and launching a login intent, it looks like the browser is not supported as a toast appears with the message: "There is no supported browser installed on this device".

Is Microsoft Edge supported?

Thanks in advance.

vicpinm avatar Dec 04 '23 09:12 vicpinm

Is it the default Browser on your device? I have seen some issues from my users and I ask them to change their default Browser to other than the current one. It fixes their login issue. I am not sure what is the problem exactly!

HesamKamalan avatar Dec 14 '23 14:12 HesamKamalan

Hi, yes, despite setting edge as the default browser in the device, I see the toast with the message described above: "There is no supported browser installed on this device".

vicpinm avatar Dec 14 '23 15:12 vicpinm

Have you set setBrowserMatcher?

If not do it this way. It works for me and I can use Microsoft Edge by this setting.

val builder = AppAuthConfiguration.Builder()
builder.setBrowserMatcher(BrowserAllowList(AnyBrowserMatcher.INSTANCE))
configuration.let {
    builder.setConnectionBuilder(it.connectionBuilder)
}
return AuthorizationService(context, builder.build())

I have installed five Browsers, Chrome, Edge, Firefox, Opera and Samsung Internet. I set one of them as the default Browser. Except when I choose Opera as the default Browser, the proper browser will be used. I have no idea why but Chrome is being used when I set Opera as my default Browser. If I disable Chrome then Samsung Internet will be used instead. Probably it's because Opera does not use Custom Tab, as mentioned here.

Hesamedin avatar Jan 03 '24 20:01 Hesamedin