Sowmiya created CB-10205:
----------------------------
Summary: device.version is not working.Error is:: Uncaught
ReferenceError: device is not defined:15 and Uncaught ReferenceError:
LocalFileSystem is not defined:5
Key: CB-10205
URL: https://issues.apache.org/jira/browse/CB-10205
Project: Apache Cordova
Issue Type: Bug
Components: Android
Affects Versions: 4.1.1
Environment: Eclipse Luna
Reporter: Sowmiya
Priority: Blocker
<script src="common/cordova.js"></script>
<script>
function getVersionName()
{
var deviceVersion = device.version;
alert(deviceVersion);
var devicePlatform = device.platform;
}
</script>
Note:
1)added cordova device plugin via CLI
2)permission also added.
3)imported version of cordova inside script tag is of 4.1.1
Uncaught ReferenceError: device is not defined:15
: Uncaught ReferenceError: LocalFileSystem is not defined:5
Tried solving by using
document.addEventListener("deviceready", onDeviceReady, false);
function onDeviceReady() {
}
this also is not working.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]