I'm trying to figure out a way to know which of my user contacts are also using my app. I have my app server running for that mission, I'll just jump into my planning of how to do this and the problem i encounter:
1) verify the user phone number with fabric's digits
2) upload user's phone number and contacts number to my server
3) save user number in server database
4) find identical phone numbers from the uploaded contact list
5) return a list of matching contacts to my app.
This, As far as i understand, should work.
The problem is country codes.
Phone numbers should be unique per public switched telephone network, but i have no idea how to handle different countries (= country code). Since phone numbers aren't saved with the country code usually, this approach will fail.
I know Fabric's digits offer a find my friends feature, but i can't use it since i'll be needing this info for later usage.
Any thoughts? Is there a better approach or a way to handle the country code issue?