How to remember camera/mic permissions on Chrome for Android?

你说的曾经没有我的故事 提交于 2019-12-24 01:47:27

问题


I'm writing a WebRTC app that is designed to be used from an Android tablet. When you access the app, Chrome prompts you to Allow or Deny access to the camera/microphone. According to this page (https://support.google.com/chrome/answer/2693767?hl=en), if you host your app behind HTTPS, then browsers will remember the setting you chose.

This works correctly in Chrome on the desktop (Mac, Linux) but when I visit the same site in Chrome Beta for Android (v29), it prompts me to Allow/Deny each time.

How can I get Chrome Beta for Android to remember that setting so my users don't have to constantly tap the Allow button?


回答1:


According to the chromium devs, this is by design and they won't fix this, for privacy reasons.

https://code.google.com/p/chromium/issues/detail?id=274022&can=1&q=webrtc%20permission&colspec=ID%20Pri%20M%20Iteration%20ReleaseBlock%20Cr%20Status%20Owner%20Summary%20OS%20Modified




回答2:


This is fixed and the behavior on mobile with respect to remembering the user's permission is the same as on desktop from M33 for Chrome on Android.



来源:https://stackoverflow.com/questions/18261667/how-to-remember-camera-mic-permissions-on-chrome-for-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!