cordova-plugin-hce
cordova-plugin-hce copied to clipboard
Issue Fixed for Huawei
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 thanks for this fix. I'll get it added into the next release.
I have a Huawei device running Android 5.1. It started working a lot better with Cordova apps after I updated the Android System WebView using Google Play.