S sigster Active Member Licensed User Longtime User Apr 18, 2016 #1 Hi Do all mobile save device Phone number so I can use it for pin number when the user call data from Mysql or is it better to use GetDeviceId Regards Sigster
Hi Do all mobile save device Phone number so I can use it for pin number when the user call data from Mysql or is it better to use GetDeviceId Regards Sigster
lemonisdead Well-Known Member Licensed User Longtime User Apr 18, 2016 #2 Not all mobiles can provide their phone number because not all sim cards have that number written in. Upvote 0
Not all mobiles can provide their phone number because not all sim cards have that number written in.
KMatle Expert Licensed User Longtime User Apr 18, 2016 #3 Let the user (like in WhatsApp) send him/herself a sms via your UI, read it to get the phone number from it... Upvote 0
Let the user (like in WhatsApp) send him/herself a sms via your UI, read it to get the phone number from it...
S sigster Active Member Licensed User Longtime User Apr 21, 2016 #4 Thanks for the Replay This is how I do this B4X: Dim pid As PhoneId Dim Encoded64 As String Dim Conv As ByteConverter Encoded64 = su.EncodeBase64(Conv.StringToBytes(pid.GetDeviceId,"UTF-8")) db.QueryASync("SELECT username,pin FROM users WHERE pin = '" & Encoded64 & "';", 11) Regards Sigster Upvote 0
Thanks for the Replay This is how I do this B4X: Dim pid As PhoneId Dim Encoded64 As String Dim Conv As ByteConverter Encoded64 = su.EncodeBase64(Conv.StringToBytes(pid.GetDeviceId,"UTF-8")) db.QueryASync("SELECT username,pin FROM users WHERE pin = '" & Encoded64 & "';", 11) Regards Sigster