How can I get the device's phone number through JavaScript in Android?

前端 未结 2 1446
北海茫月
北海茫月 2021-01-17 01:10

I want to get device phone number through JavaScript for validating user.

I am sending sms to client when he clicks on a URL I need to perform some operation

2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-17 01:39

    Ask them to enter in into a form - otherwise Ankit is right, it's a security / privacy issue. They might not want you to know their number.

提交回复
热议问题