You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Tim Kim (JIRA)" <ji...@apache.org> on 2013/05/24 23:19:20 UTC

[jira] [Commented] (CB-3509) network information javascript is tied into cordovajs

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

Tim Kim commented on CB-3509:
-----------------------------

Ok, I think I kinda figured out why deviceready isn't firing:

1) In the network.js file, it deals with firing the online/offline events for Cordova - so removing this will cause these events not to fire.

2) In the the android exec.js file, it uses the network online/offline events to start up the communication with the native side. 

3) Therefore, the removal of the network.js file is not starting the js communication with the native side which is a good cause for the device ready event not firing. 

I'm not sure what a good work around for this right now. I'm too familiar with the internals of cordova js for android. I will seek help for this quest. 


 
                
> network information javascript is tied into cordovajs
> -----------------------------------------------------
>
>                 Key: CB-3509
>                 URL: https://issues.apache.org/jira/browse/CB-3509
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CordovaJS, Plugin Network Information
>            Reporter: Steve Gill
>            Assignee: Tim Kim
>             Fix For: 3.0.0
>
>
> cordovajs 3.0.0 branch
> When we remove the network/connection javascript code from cordova-js, device ready doesn't fire. Will need more investigation.
> Remove code required by network information plugin from cordova js.
> Build cordova js by running jake
> Copy over newly created javascript files to android/ios 3.0.0 branches.
> cordova-ios/CordovaLib/cordova.js
> cordova-android/framework/assets/www/cordova.js
> create android + ios projects using create scripts
> run created projects, device ready doesn't fire. No need to even install plugins.
> Need to go to cordova-js and see why device ready doesn't fire after removing these files.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira