Ich versuche, die Geräte-UUID mithilfe von Phonegap abzurufen, aber das gesamte Geräteinformations-Plugin scheint nicht zu funktionieren. Ich verwende nur die Beispielcodes aus den Phonegap-Site-Dokumenten in meinem Index. http://docs.phonegap.com/en/1.3.0/phonegap_device_device.md.htmlPhonegap - Geräteinformationen funktionieren nicht
<!DOCTYPE html>
<html>
<head>
<title>Device Properties Example</title>
<script type="text/javascript" charset="utf-8">
// Wait for PhoneGap to load
//
document.addEventListener("deviceready", onDeviceReady, false);
// PhoneGap is ready
//
function onDeviceReady() {
var element = document.getElementById('deviceProperties');
element.innerHTML = 'Device Name: ' + device.name + '<br />' +
'Device PhoneGap: ' + device.phonegap + '<br />' +
'Device Platform: ' + device.platform + '<br />' +
'Device UUID: ' + device.uuid + '<br />' +
'Device Version: ' + device.version + '<br />';
}
</script>
</head>
<body>
<p id="deviceProperties">Loading device properties...</p>
</body>
</html>
ich die Geräteinformationen neu installiert Plugin, nur um sicher zu sein, aber Loading device properties...
ist alles, was auf index.html
angezeigt hat ich auch das gleiche Problem mit cordova-plugin-sim
Phonegap getting sim information using cordova-plugin-sim
erlebenAber ich konnte das Barcode-Scanner-Plugin ohne viel Problem implementieren. Könnte dieses Problem irgendwie damit zusammenhängen, dass ich nichts vom cordova sim plugin abrufen kann?
Phonegap Version ist 6.4.6
Node Version 7.9.0
Cordova-Version ist 6.5.0
den Verweis auf cordova.js geändert und es hat funktioniert, danke – user253938