telegram-apps
telegram-apps copied to clipboard
[Bug]: Android cannot use the camera
Telegram Application
Telegram for Android
Describe the Bug
TMA cannot use the camera on Android, but it works fine on iOS. Using navigator.mediaDevices.getUserMedia does not solve the camera issue.
To Reproduce
Steps to reproduce the behavior:
- codes:
<input type={"file"} accept={"image/*"} ref={imageRef} />
# open camera
const onOpen = () => imageRef.current.click();
# check
const checkPermission = () => await navigator.mediaDevices.getUserMedia({ video: true }).then(() =>true);
- Click on 'onOpen' function
- Android display "this app can only access the photos you select"
Expected Behavior
The behavior on Android and iOS is consistent, allowing the selection of both camera and album images.
When will they fix it? I've been waiting a billion years
When will they fix it? I've been waiting a billion years
+++