简体   繁体   English

ios PWA(添加到主屏幕)未在 Angular 中为视频标签请求相机权限

[英]ios PWA(add to home screen) is not asking for Camera permission in Angular for video tag

I have created PWA using angular in which I am using zxing-ngx-scanner library, which library for barcode scan.我使用 angular 创建了 PWA,其中我使用了zxing-ngx-scanner库,该库用于条码扫描。 In ios browsers(Safari, Chrome and Firefox) and on Android it's asking for camera permissions and it's working fine, but if I add my site to homescreen(in ios), then it's not asking me for the camera permissions.在 ios 浏览器(Safari、Chrome 和 Firefox)和 Android 上,它要求相机权限并且工作正常,但如果我将我的网站添加到主屏幕(在 ios 中),那么它不会要求我提供相机权限。

  • I have hosted my site on HTTPS我在 HTTPS 上托管了我的网站
  • All PWA functionality working fine所有 PWA 功能都运行良好
  • I am using tag for the barcode scan我正在使用标签进行条形码扫描

Please let me know if anyone has any suggestions?请让我知道是否有人有任何建议?

Thanks in advance提前致谢

Try to upgrade to iOS 13.4 and try again.尝试升级到 iOS 13.4 并重试。 The fix that Apple provided may work now. Apple 提供的修复程序现在可能有效。

https://bugs.webkit.org/show_bug.cgi?id=185448#c88 https://bugs.webkit.org/show_bug.cgi?id=185448#c88

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM