移动Web应用程序可以访问设备电话号码吗? [英] Can a mobile web application access the devices phone number?

查看:88
本文介绍了移动Web应用程序可以访问设备电话号码吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

比方说,移动Safari,我可以获取设备的电话号码吗?据推测,这会提示用户是否允许它与位置一样。

In say, mobile Safari, can I get the device's phone number? Presumably this would prompt the user if its allowed like it does with location.

推荐答案

在某些情况下,这个数字可能是从网络运营商自己的头部发送。 (即你不会通过wifi看到它)

It is possible in some cases that the number is sent through in a header from the network operator themselves. (i.e. you won't see it via wifi)

不同的运营商使用不同的标题:

Different operators use different headers:

例如。


  • X-UP-CALLING-LINE-ID (南非Vodacom)

  • x-up-subno (Google Adsense的移动代码片段会查看此其他

  • X-UP-CALLING-LINE-ID (Vodacom South Africa)
  • x-up-subno (Google Adsense's Mobile code snippet looks at this amongst others)

某些设备ID标头可能包含用户的MSIDSN。

Some Device ID headers that might contain the MSIDSN of the user.


  • x-dcmguid

  • x-up-subno

  • x-jphone-uid

  • x-em-uid

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

这里还有更多: http://mobiforge.com/developing/blog/useful-x-headers

你必须看看你的目标市场(他们通常来自哪个网络),以了解哪些标题将覆盖最多的用户。

You will have to look at your target market (what network they typically come from) to know which headers will cover the most users for you.

这篇关于移动Web应用程序可以访问设备电话号码吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆