从网页访问用户联系人
是否可以从网页访问移动用户的电话联系人?我工作的公司希望使用二维码引导人们访问其网站上的优惠券,然后让观众可以选择通过短信将网址发送给他们的朋友。
显然,这将是一项选择加入服务。也许您需要构建一个移动应用程序来完成任务?如果有人知道如何完成此任务或类似的事情,请告诉我。
Is it possible to access a mobile users phone contacts from a web page? The company I work for would like to use QR codes to direct people to a coupon on their website and then give viewers the option of sending the url to their friends in a text message.
Obviously this would be an opt in service. Perhaps you would need to build a mobile application to accomplish the task? If anyone has an idea on how to accomplish this or something similar please let me know.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
据我所知,在任何主要平台上都不可能通过网页访问联系人数据库;为了访问这些数据,需要一个本机应用程序。
As far as I know, it is not possible to access the contact database via a web page, on any of the major platforms; in order to access this data, a native application is required.
内特是对的。
您唯一能做的事情(这并不能完成您需要的一切)是将短信编码为二维码(例如“sms:number:subject”,请参阅http://code.google.com/p/zxing/wiki/BarcodeContents),这样您的公司将获得用户的电话号码作为短信的一部分,但不是他/她的朋友数量。
Nate is right.
The only thing that you can do (that won't accomplish everything you need) is encode SMS message in QR code (e.g. "sms:number:subject" see http://code.google.com/p/zxing/wiki/BarcodeContents), this way your company will get user's phone number as part of SMS message, but not numbers of his/her friends.
用于访问联系人的 API 正在构建到 WebApi 由 Mozilla 开发,但截至目前,它尚未默认启用,我预计跨浏览器支持还很遥远。
An API for accessing contacts is being built into the WebApi by Mozilla but as of today it's not enabled by default and I expect cross browser support is still far off.