-
Notifications
You must be signed in to change notification settings - Fork 387
[Bug]: Android cannot use the camera #681
Copy link
Copy link
Open
Labels
Description
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.
Reactions are currently unavailable