0maru / twitter_login

MIT License
54 stars 54 forks source link

Could not open browser #101

Closed SalsabeelaHasan closed 2 years ago

SalsabeelaHasan commented 2 years ago

Bug report

PlatformException(200, Could not open the browser, probably caused by unavailable custom tabs., null, null)

Which method do you use?

0maru commented 2 years ago

This plugin uses ChromeCustomTabs. It can`t be executed if Chrome App is not installed.

Please make sure that Chrome App is installed.

SalsabeelaHasan commented 2 years ago

@0maru thanks for your answer, but i have Chrome App in my device.. is there other reasons ? and i won't to ask u if there is a future plan to add other browsers?

0maru commented 2 years ago

@SalsabeelaHasan I would add browsers that support Custom Tabs to the list of working targets. I'm hoping to release it as a beta version by the end of this week.

0maru commented 2 years ago

@SalsabeelaHasan

thanks for your answer, but i have Chrome App in my device.. is there other reasons ?

sorry. I forgot to answer. If you don't have Chrome set as your default browser, your browser may not start.

SalsabeelaHasan commented 2 years ago

@SalsabeelaHasan

thanks for your answer, but i have Chrome App in my device.. is there other reasons ?

sorry. I forgot to answer. If you don't have Chrome set as your default browser, your browser may not start.

Understood, thank you! I'll keep an eye on the updates you make. and i suggest to add this information to the document to alert us early.

SalsabeelaHasan commented 2 years ago

@0maru My other question, does this condition also apply to IOS users? what about them, should they have chrome and make it as default browser? What problems with browsers can they face?

0maru commented 2 years ago

@SalsabeelaHasan Therefore, iOS does not apply because it uses Safari functionality.

0maru commented 2 years ago

I have released v4.3.0-dev. This release fixes the Android implementation. Could you please check if it works?

SalsabeelaHasan commented 2 years ago

I have released v4.3.0-dev. This release fixes the Android implementation. Could you please check if it works?

this is awesome, thank you!. The new error appeared : PlatformException(INVALID_AUTHORIZATION, can not open custom tabs., null, null) should I tell the user to install chrome and make it the default browser or this service won't complete? my default browser is Brave

0maru commented 2 years ago

No, that is not required. It works even if the default browser is set to Brave. Can you tell me what device name and Android OS version you are using so I can investigate in detail?

My Device Info.

https://user-images.githubusercontent.com/43493921/173360775-d12989e0-abc9-4399-83bd-a760bbaa777c.mp4

SalsabeelaHasan commented 2 years ago

No, that is not required. It works even if the default browser is set to Brave. Can you tell me what device name and Android OS version you are using so I can investigate in detail?

My Device Info.

  • Android 12
  • Pixel 5a

https://user-images.githubusercontent.com/43493921/173360775-d12989e0-abc9-4399-83bd-a760bbaa777c.mp4

Intresting! My device info:

0maru commented 2 years ago

It worked on a Huawei device.

You should make sure that these two.

  1. that the default app is set.
  2. that chrome is set as the default browser app and that it works.