Skip to content

[Bug]: Android cannot use the camera #681

@wufd

Description

@wufd

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions