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?

  • 1
  • 1
  • 6407
  • twitter facebook

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 )

  • 0

Similar posts

    No similar posts

Are you sure? question.vm