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

Determining the country code of a string phone number? #25

Open
fonix232 opened this issue Oct 13, 2016 · 1 comment
Open

Determining the country code of a string phone number? #25

fonix232 opened this issue Oct 13, 2016 · 1 comment

Comments

@fonix232
Copy link

I'm using this library for server-side phone number management, however ran into a little bit of an issue.

The Java counterpart works fine with the PhoneNumberUtil.getInstance().parse("phonenumber here","") format, automatically determining the country code. However the .Net version (this) requires a valid country identifier, which I unfortunately do not have specified for the phone numbers.

In my service, I send out verification text messages based on country. This means I have to determine the country the phone number originates from.

How can I do this with this library?

@jimbo8098
Copy link

You can use null in place of the "" here, I just did this to check up on #32 . You'll need to use the most recent version of the tool which considering the post date probably isn't the case :)

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