How to get phone number
I need to get the phone number of the phone for use the number to login.
Any suggestions are welcome.
Thanks,
Luca
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
I need to get the phone number of the phone for use the number to login.
Any suggestions are welcome.
Thanks,
Luca
Hello Luca,
Please check this link, it may be useful for you: https://getsatisfaction.com/apperyio/...
Hi Evgene,
thank you, but I tried to use cordova sim in Appery but when I install the app on mobile no effect.
It's possible appery don't have any lib to get phone number?
Regards,
Luca
Hello Luca,
Please try to debug your app remotely using Weinre debugger (https://docs.appery.io/docs/weinre-de...). Please check if there are any errors in the Weinre console.
One approach is to use the TelephonyManager class in Android to retrieve the phone number. You can use the getLine1Number() method to get the phone number as a string.