-4

I want to make a QR Scan with KaiOS technologies, but that is not working in the KaiOS emulator. I'm using emulator version 2.2. But, I try on the web browser, the camera is worked.

Penny Liu
  • 15,447
  • 5
  • 79
  • 98
Nyx47
  • 13
  • 1
  • 6

1 Answers1

0

On KaiOS phones, you have to make use of mozActivities like below:

var cameraActivity = new MozActivity({
    name: "pick",
    data: {
        type: ["image/*"]
    }
});

cameraActivity.onsuccess = function () {
    console.log('The received photo blob is' + this.result.blob);
};

cameraActivity.onerror = function () {
    console.error('Unable to open camera from device ');
};

Kindly refer to this link here for further details.

Penny Liu
  • 15,447
  • 5
  • 79
  • 98