Android Question get phone numer

omidaghakhani1368

Well-Known Member
Licensed User
Hi.
I cannot get primary phone number however use verification phone number with send sms
how get phone number acctually?
 

lemonisdead

Well-Known Member
Licensed User
But not working.it return empty
Hello,
Maybe the phone number is not written into the SIM card. Reason why you can not get it.
The only solution, I have found in such cases, is to send your server a SMS message. So you can register the incoming phone number and return an ID stored into your app.
If the client needs registering another time with the same phone number and to avoid piracy, you can use a couple of : Number + ID + IMEI
 

omidaghakhani1368

Well-Known Member
Licensed User
Hello,
Maybe the phone number is not written into the SIM card. Reason why you can not get it.
The only solution, I have found in such cases, is to send your server a SMS message. So you can register the incoming phone number and return an ID stored into your app.
If the client needs registering another time with the same phone number and to avoid piracy, you can use a couple of : Number + ID + IMEI
Thank you to the best solution.
 
Top