0maru / twitter_login

MIT License
54 stars 54 forks source link

vivo, Android,Could not open browser #121

Closed wanghuasheng closed 1 year ago

wanghuasheng commented 1 year ago

in Android phone ,vivoS12,iaomi mix2,Could not open browser。

if (pm.resolveService(serviceIntent, 0) != null) { packagesSupportingCustomTabs.add(info.activityInfo.packageName); }

cant resolveService

can not open custom tabs

PlatformException(INVALID_AUTHORIZATION, can not open custom tabs., null, null)

I hope to skip to other default browsers or webview ,when there is no Chrome browser available

you can use androidx.webkit:webkit:1.3.0 replace androidx.browser:browser:1.3.0

0maru commented 1 year ago

Since ChromeCustomTabs appears to be implemented in various browsers, I would like to proceed in the direction of expanding the target browsers.

wanghuasheng commented 1 year ago

Since ChromeCustomTabs appears to be implemented in various browsers, I would like to proceed in the direction of expanding the target browsers.

processing in the direction of expanding the target browsers is good!

You can also jump to webkit.webview when you cant resolveService, without any conflict。

wanghuasheng commented 1 year ago

I solved this problem using fireBase, and one line of code is very simple!

YaakovHuang commented 1 year ago

I solved this problem using fireBase, and one line of code is very simple!

I also encountered the same problem. How did you solve this problem?