-1

I have read this question and I know that I cannot directly access cell phone number in mobile website. However, is there a way I can access it with user's permission?

I am creating a mobile website of a member program. To register, I will need to verify the mobile number by sending a sms. Sending sms cost a lot, especially if the user is from another country. So I am thinking of another way to verify the user's mobile number, and one way I can think of is to get the mobile number from mobile browser with user's permission. Is this possible or do I have other ways to verify user's mobile number without sending a sms?

I am using PHP with laravel for backend but are willing to switch to any other language or framework if necessary.

Community
  • 1
  • 1
cytsunny
  • 4,838
  • 15
  • 62
  • 129

2 Answers2

0

No.

Browsers offer no such API.

Quentin
  • 914,110
  • 126
  • 1,211
  • 1,335
  • @RononDex — It does answer the question. It might not provide an answer that is desired. What is being asked for is simply impossible. There is no critique or request for clarification. – Quentin Sep 04 '15 at 08:24
0

NO you can not.

you can prompt the user to enter their phone number and trust that they will enter the correct number then get that number using a HTTP-Get or HTTP-POST at your server side

Pindo
  • 1,585
  • 5
  • 16
  • 32