telegram-apps icon indicating copy to clipboard operation
telegram-apps copied to clipboard

[Bug]: Android cannot use the camera

Open wufd opened this issue 11 months ago • 2 comments

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:

  1. 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);
  1. Click on 'onOpen' function
  2. 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.

wufd avatar Mar 12 '25 08:03 wufd

When will they fix it? I've been waiting a billion years

Lok3rn3t avatar Mar 29 '25 18:03 Lok3rn3t

When will they fix it? I've been waiting a billion years

+++

Anvarmirzo avatar May 19 '25 08:05 Anvarmirzo