cordova-plugin-hce icon indicating copy to clipboard operation
cordova-plugin-hce copied to clipboard

Issue Fixed for Huawei

Open tsukasa1989 opened this issue 8 years ago • 1 comments

Inside the hce-util.js a ES6 function is used. The forEach function, on a modern Huawei this function does not exists and will give you an error. Therefor it works on all devices I tested except all Huawei.

Replace the function in hce-util.js on line 31 with the following:

for (var i = 0; i < a.length; i++) {
    s += toHex(a[i]);
}

And you code will work on this device aswell

tsukasa1989 avatar Jul 15 '16 09:07 tsukasa1989