PWA 可以访问联系人、gps 或使用手机摄像头吗? [英] Can PWA access contacts, gps or use the phone camera?

查看:29
本文介绍了PWA 可以访问联系人、gps 或使用手机摄像头吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

PWA 可以访问联系人、gps 或使用手机摄像头吗?

Can PWA access contacts, gps or use the phone camera?

这在任何系统(ios、android)中都可能吗?

Is this possible in any system (ios, android) ?

是否有任何计划来实现这些功能?

Is there any plan in development to implement any of these features ?

推荐答案

PWA 无法克服一些限制:

- 您无法访问手机上的联系人列表.
- 另一方面,您可以拍照并使用 GPS 定位.

There are some restrictions that cannot be overcome with a PWA:

- you cannot access the contacts list on a phone.
- On the other hand, you can take photos and use GPS location.

whatwebcando.today 网站上,您可以通过浏览器获得与原生应用程序相比可用的 API 列表.如果您单击一个功能,您可以看到一个示例片段,其中显示了您如何实现它以及有关浏览器支持的详细信息.

On whatwebcando.today web site you can have a list of APIs available via browser compared to native apps. If you click on one feature, you can see a sample snippet showing how you can implement it and also details about the browsers support.

更新 30.09.2019

从 Chrome v77 开始,提供了一个新的实验性 API:联系人选择器

From Chrome v77 there is a new experimental API available: Contact Picker

联系人选择器 API 是一种按需 API,允许用户从其联系人列表中选择条目,并与网站共享所选条目的有限详细信息.它允许用户只在他们想要的时候分享他们想要的东西.

The Contact Picker API is an on-demand API that allows users to select entries from their contact list and share limited details of the selected entries with a website. It allows users to share only what they want, when they want.

例如,基于 Web 的电子邮件客户端可以使用 Contact Picker API 来选择电子邮件的收件人.IP 语音应用程序可以查找要拨打的电话号码.

For example, a web-based email client could use the Contact Picker API to select the recipient(s) of an email. A voice-over-IP app could look up which phone number to call.

因此,剩余的 PWA 限制可能会在不久的将来得到解决.

Hence it might be that the the remaining PWA restrictions will be solved in a near future.

这篇关于PWA 可以访问联系人、gps 或使用手机摄像头吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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