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
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:
And you code will work on this device aswell