Get the Phone Number of the Device

How to get the Phone Number of the Device with App Inventor

Note: with the extension feature, this workaround is now obsolete. Thank you MIT!
Now you can use my Telephony Manager Extension instead.

Unfortunately there is currently no simple possibility to get a user's phone number.
However with this trick, which has been provided by Collins Owusu, the app sends a SMS with a authorization code to the phone number entered by the user and can confirm the phone number this way. Thank you Collins for this great idea!

The app will need permission to send and receive a SMS.

You probably also might be interested in the example How to get some Device specific info with App Inventor.

and How to get the Device ID within App Inventor calling a Java app.

App Inventor Blocks

For questions about App Inventor,
please ask in the App Inventor community.Thank you.



Developing and maintaining snippets, tutorials and extensions for App Inventor takes a lot of time.
I hope it saved some of your time. If yes, then you might consider to donate a small amount!

Donation amount:

or donate some mBTC to Bitcoin Address:

Thank you! Taifun

Download aia file for App Inventor

Back to top of page ...

Creative Commons License
This work by Pura Vida Apps is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License
with attribution (name=Pura Vida Apps and link to the source site) required.

Home | Snippets | Tutorials | Extensions | Links | Search | Privacy Policy | Contact