Progressive web apps 在PWA中我们可以要求什么样的移动许可
我想知道PWA在Android Mobile和iOS Mobile中可以获得的所有权限列表 以下是我知道的: 1.摄像机Progressive web apps 在PWA中我们可以要求什么样的移动许可,progressive-web-apps,Progressive Web Apps,我想知道PWA在Android Mobile和iOS Mobile中可以获得的所有权限列表 以下是我知道的: 1.摄像机 2.推送通知权限注册表: 'accelerometer', 'accessibility-events', 'ambient-light-sensor', 'background-sync', 'camera', 'clipboard-read', 'clipboard-write', 'geolocation', 'gyroscope', 'magnet
2.推送通知权限注册表:
'accelerometer',
'accessibility-events',
'ambient-light-sensor',
'background-sync',
'camera',
'clipboard-read',
'clipboard-write',
'geolocation',
'gyroscope',
'magnetometer',
'microphone',
'midi',
'notifications',
'payment-handler',
'persistent-storage'
'push'
您可以使用查询来获取用户权限的状态:
navigator.permissions.query(PermissionDescriptor)
.then(
function(permissionStatus) { ... }
)