The method onDeviceRead() don´t fire when I am running it in an Crosswalk-Cordova-Project.
I have tested the following versions of Crosswalk Cordova Android(ARM):
-11.40.277.7
-12.41.296.4
-13.41.313.0
I am using cordova 3.6.3
Here is my Code from the HTML-File:
<html>
<head>
<meta charset="utf-8" />
<meta name="format-detection" content="telephone=no" />
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi" />
<link rel="stylesheet" type="text/css" href="css/index.css" />
<title>Test</title>
<script type="text/javascript" src="cordova.js"></script>
<script type="text/javascript" src="js/index.js"></script>
<script type="text/javascript">
app.initialize();
</script>
<script type="text/javascript" charset="utf-8">
function onLoad() {
document.addEventListener("deviceready", onDeviceReady, false);
}
// device APIs are available
//
function onDeviceReady() {
alert("123");
}
</script>
</head>
<body onload="onLoad()">
<div class="app">
<h1>Apache Cordova</h1>
<div id="deviceready" class="blink">
<p class="event listening">Connecting to Device</p>
<p class="event received">Device is Ready</p>
</div>
</div>
</body>
Here is the documentation from cordova: http://docs.phonegap.com/en/edge/cordova_events_events.md.html#deviceready
Thanks in advance!