Question Details

Answered
Problem on Android : Could not open device's camera on LIFF using HTML input tag

I would like to open the mobile's camera on LIFF using HTML input tage.

<input type="file" accept="image/*" capture="camera">

The problem is that on an Android device, it opens the gallery instead of the camera. However, it works fine as expected on an IOS device.

I found this issue on line-platform-feedback github repository here

However, it seem like they didn't fix it. Also that feedback repo already archived and closed.

What I did right now is that I have to force redirect to external browser. And this solution is not really user friendly.

So it there any ways to fix this issue?

0
Edited: 1 months ago
Profile picture
C.wān_Yø

Answers

1
Profile picture
Shoya
Posted: 1 months ago

using liff seems difficult. you should ask the user to prepare a photo in advance or send photo via Bot. (and get image by api https://developers.line.biz/en/reference/messaging-api/#get-content )

Are you sure? question.vm