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

Phone verification issue #4

Closed
Lee-Martin-KOS opened this issue Aug 18, 2021 · 1 comment
Closed

Phone verification issue #4

Lee-Martin-KOS opened this issue Aug 18, 2021 · 1 comment

Comments

@Lee-Martin-KOS
Copy link

Hi Guys,

First of all very nice app, i have installed the app to test but getting phone verification error something i have done wrong?

Regards
Martin

@arafaysaleem
Copy link
Owner

Thankyou! First off I need to remind you that this app was made pre null safety release so the code won't work with the latest flutter version.

Secondly, there could be two reasons why you are getting that error:

  1. You didn't setup your own firebase phone auth and added your own google-services.json
  2. If you have done the above already, then maybe the issue arises due to the isPhoneNumber method or parsePhoneNo method. Both of these methods were made to only allow Pakistani mobile numbers. Try adjusting their logic for your own numbers. I'm posting the link to these methods.

static String parsePhoneNo(String number){

static bool isPhoneNumber(String number){

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants