-
Notifications
You must be signed in to change notification settings - Fork 194
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
Handle phone numbers prefixes #31
Comments
From [email protected] on March 31, 2013 11:23:07 Actually Kontalk does save the country code the user uses during registration, and it uses it to find other registered users. NumberValidator#fixNumber contains this logic:
Maybe there is a problem with country code detection. Can you please do the following:
Please note that on Android 4.1+ you need root access to use Catlog. Summary: Phone numbers in address book require country code for Kontalk to find contacts (was: phone numbers in address book require country code for kontalk to find contacts) |
From [email protected] on March 31, 2013 11:45:54 I don´t want to root my device yet, sry. I tried to get the log messages with LogCat on my laptop (ADT) with kontalk running on my connected device but no message from kontalk appeared. But steps 2. & 3. are reproduceable. After I removed "+49" from a contacts number, it disappead in kontalk after a refresh. |
From [email protected] on March 31, 2013 11:51:05 I didn't think about using adb, I didn't know your skills sorry :) P.S. In logcat you should look for one of these:
|
From [email protected] on March 31, 2013 11:58:05 maybe i found the problem(?): if number does not begin with '+' you do the following number = prefix + number; => number = prefix + number.substring(1); am I right? |
From [email protected] on March 31, 2013 12:07:13 You did find the problem :) Summary: Handle phone numbers prefixes (was: Phone numbers in address book require country code for Kontalk to find contacts) |
From [email protected] on April 03, 2013 16:51:28 A quick look at the libphonenumber website makes this looks as a promising option. QUOTE String swissNumberStr = "044 668 18 00" [..] // Produces "+41446681800" So it seems that as long as the country is known, every phone number can be converted to an international number. Since the country is known from the user's country code which is entered during setup, this should be able to solve the problem. |
From [email protected] on April 09, 2013 03:28:36 Fixed in xmpp and master. Status: Fixed |
From [email protected] on May 14, 2013 02:26:19 Issue 77 has been merged into this issue. |
From [email protected] on May 14, 2013 02:27:18 Issue 79 has been merged into this issue. |
From [email protected] on March 08, 2014 06:24:41 Issue 79 has been merged into this issue. |
From [email protected] on March 31, 2013 19:06:59
Original issue: http://code.google.com/p/kontalk/issues/detail?id=49
The text was updated successfully, but these errors were encountered: