I am trying to get the confirmed phone number from whatsApp programatically. I saw a lot of questions regarding the problem that exist to get the number from the phone.
Like this one here: Programmatically obtain the phone number of the Android phone
However all this questions say that this is not the perfect way to do it because in some phones it will not work. You can see a lot of people saying that in any of those questions.
The second option is to use a 3rd part service like Twilio and Nexmo and go through the confirmation process all the way exactly like WhatsApp does: - Ask to user to type the number - Send and SMS - Confirm user phone
I have been thinking about the existence of a third option: get the phone that is already confirmed and saved in WhatsApp.
Once I checked WhatsApp FAQ and found that they are really helpful. For example, I found this information about how to use their API to send stuff. You can check it here: WhatsApp FAQ
Although I didn't find nothing about how to get the WhatsApp number from the user phone.
I am just wondering if some of you have already tried it or had success trying to get this confirmed number. I believe that it will save tons of times of anyone who plans to use phone numbers as ID's for their apps.
Thank you!