While my application runs smoothly in the browser, I encounter an error when trying to run it on my device. The issue is as follows:
0 758771 log deviceready has not fired after 5 seconds.
1 758797 log Channel not fired: onDOMContentLoaded
2 758932 error Uncaught TypeError: Cannot read property '6' of undefined, http://(ip address)/build/js/Reflect.js, Line: 894
The problematic code resides within Reflect.js
, however, being a part of Ionic's packaging, I am unable to modify it which leaves me unsure how to resolve this issue.
function CreateUUID() {
var data = GenRandomBytes(UUID_SIZE);
// mark as random - RFC 4122 § 4.4
data[6] = data[6] & 0x4f | 0x40;
data[8] = data[8] & 0xbf | 0x80;
var result = "";
for (var offset = 0; offset < UUID_SIZE; ++offset) {
var byte = data[offset];
if (offset === 4 || offset === 6 || offset === 8)
result += "-";
if (byte < 16)
result += "0";
result += byte.toString(16).toLowerCase();
}
return result;
}
It appears that the function GenRandomBytes()
is returning null in this scenario. Any assistance would be greatly appreciated.