[ 
https://issues.apache.org/jira/browse/CB-10205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15061491#comment-15061491
 ] 

Sowmiya commented on CB-10205:
------------------------------

i have included cordova.js from the platform_www folder.

var PLATFORM_VERSION_BUILD_LABEL = '4.1.1';this version no. is inside cordova.js



> 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
>
> <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]

Reply via email to