Can a mobile web application access the device’s phone number?

Say, mobile Safari, can I get the phone number of the device? Presumably this will tell the user if his use with the location is allowed.

0
source share
1 answer

In some cases, it is possible that the number is sent in the header from the network operator itself. (i.e. you will not see it via Wi-Fi)

Different operators use different headers:

eg.

  • X-UP-CALLING-LINE-ID (Vodacom, South Africa)
  • x-up-subno (Google Adsense Mobile code snippet considers this one among others )

Some device identifier headers that may contain the user's MSIDN.

  • x-dcmguid
  • x-up-subno
  • x-jphone-uid
  • x-em-uid

There is even more here: http://mobiforge.com/developing/blog/useful-x-headers

You will need to look at your target market (from which network they usually come) to find out which headings most users will cover for you.

+1
source

Source: https://habr.com/ru/post/1303367/


All Articles