bbcmicrobit / PythonEditor

A MicroPython editor for the BBC micro:bit that works with browsers.
https://python.microbit.org/
MIT License
198 stars 129 forks source link

On android when loading a file - chrome wants access to camera #173

Open rhubarbdog opened 5 years ago

rhubarbdog commented 5 years ago

I looked at the webUSB support article and it indicates that it works on android. I created a program and saved it. I cleared the editor then loaded it. When i click load button then click 'pick a file' link I get the android window 'chrome needs access to camera and record video' It then pops up 'chrome needs to record audio' I click allow on both pop ups and it then offers 4 icons. Camera, camcorder, audio and files.

Chrome already had access to storage.

How do i find my android version if you need it? EDIT--- you go to settings/phone / software My android version is 8.1.0 Samsung experience version 9.5 ---END Chrome is version 75.0.3770.101

Is there something missing on that pick a file link that would indicate to chrome that it only needs access to storage

microbit-carlos commented 5 years ago

Hi @rhubarbdog,

When clicking "pick a file" the browser passes control to an app in your device and at that point the PythonEditor is no longer in control. I am not aware of a way to reduce the permissions that android might think it needs, but it's certainly something we can look into.

rhubarbdog commented 5 years ago

Just so you're aware this doesn't happen with chromium version 9.2.10.15 So it's a feature/bug with chrome on android