How to access camera on iOS11 home screen web app?

后端 未结 6 1752
遇见更好的自我
遇见更好的自我 2020-12-02 03:45

Summary

We cannot access camera from an iOS11 (public release) home screen web app using either WebRTC or the file input, details below. How can our users continu

6条回答
  •  长情又很酷
    2020-12-02 04:27

    Good news! The camera finally seems to be accessible from a home screen web app in the first iOS 11.3 beta.

    I have made a repo with a few files, which demonstrate that it works:

    https://github.com/joachimboggild/uploadtest

    Steps to test:

    1. Serve these files from a website accessible from your phone
    2. Open the index.html in iOS Safari
    3. Add to home screen
    4. Open app from home screen. Now the web page is open in full screen, without navigation ui.
    5. Press the file button to select an image from camera.

    Now the camera should work normally and not be a black screen. This demonstrates that the functionality works again.

    I must add that I use a plain field, not getUserMedia or somesuch. I do not know if that works.

提交回复
热议问题