I have a question about how to match phone numbers from user's contact list with phone numbers I have on remote database. Flow goes like this:
- User registers on my app with his phone number (so does any other user)
- App ask for contact permission
- App sends contacts (phone numbers) to server to match against other registered numbers
The problem I have is that users register their phone number in format: +1XXXYYY. For example person A registers with number +1222333. It might happen that person B has person A in his contact list as 0222333, how should I match that number? I can't know if prefix is "+1" or some other number.