Phone number extraction

In the application that I am writing, in order to authenticate a person, it is necessary to match the mobile number on which the application is installed with the database number, and if it matches, to allow the user to continue working. Therefore, the app should extract the number from the SIM card. I have found codes in the following link, but how can these codes be used in the Inventor app? or is there any simpler way?
Thanks for your tips

and the link ?

1 Like

https://puravidaapps.com/telephonymanager.php

thanks you are great :hugs: :hugs:

unfortunately, i couldn't extract phone number and i understand that phone number didn't save on Sim in my country.
if it's possible say some solution for IMEI number.
thanks

https://developer.android.com/about/versions/10/privacy/changes

therefore i couldn't use IMEI, but in my app i should be sure every person will send his position with his phone via my app to database, therefore i don't want to use SMS authentication. do you have any idea?

There are a few options, maybe this:

grafik

1 Like

or better the App Inventor Extensions: Account Manager | Pura Vida Apps
Pick Google Account extension, which does not need any permissions

Taifun


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun.

1 Like

thanks a lot. i will try with this.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.