You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Simon MacDonald (Created) (JIRA)" <ji...@apache.org> on 2012/01/09 19:48:39 UTC

[jira] [Created] (CB-164) On location.reload(), onDeviceReady() function is not firing in Android

On location.reload(), onDeviceReady() function is not firing in Android
-----------------------------------------------------------------------

                 Key: CB-164
                 URL: https://issues.apache.org/jira/browse/CB-164
             Project: Apache Callback
          Issue Type: Bug
          Components: Android
    Affects Versions: 1.3.0
            Reporter: Simon MacDonald


When the page is loaded onDeviceready() function is fired ,
when i tried to reload the page using location.reload() it is not
fired.

Note : It is working fine when i used PhoneGap-0.9.5.js

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CB-164) On location.reload(), onDeviceReady() function is not firing in Android

Posted by "Joe Bowser (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-164?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13257573#comment-13257573 ] 

Joe Bowser commented on CB-164:
-------------------------------

The webview error is a red herring and is from loadUrlIntoView, which actually isn't called at all when you use location.reload().  I recommend adding logs to the callback server and seeing what is being passed out and whether it makes it.  
                
> On location.reload(), onDeviceReady() function is not firing in Android
> -----------------------------------------------------------------------
>
>                 Key: CB-164
>                 URL: https://issues.apache.org/jira/browse/CB-164
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.3.0
>            Reporter: Simon MacDonald
>            Assignee: Filip Maj
>             Fix For: 1.7.0
>
>
> When the page is loaded onDeviceready() function is fired ,
> when i tried to reload the page using location.reload() it is not
> fired.
> Note : It is working fine when i used PhoneGap-0.9.5.js

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Assigned] (CB-164) On location.reload(), onDeviceReady() function is not firing in Android

Posted by "Joe Bowser (Assigned) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-164?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joe Bowser reassigned CB-164:
-----------------------------

    Assignee: Joe Bowser
    
> On location.reload(), onDeviceReady() function is not firing in Android
> -----------------------------------------------------------------------
>
>                 Key: CB-164
>                 URL: https://issues.apache.org/jira/browse/CB-164
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.3.0
>            Reporter: Simon MacDonald
>            Assignee: Joe Bowser
>
> When the page is loaded onDeviceready() function is fired ,
> when i tried to reload the page using location.reload() it is not
> fired.
> Note : It is working fine when i used PhoneGap-0.9.5.js

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CB-164) On location.reload(), onDeviceReady() function is not firing in Android

Posted by "Filip Maj (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-164?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13257698#comment-13257698 ] 

Filip Maj commented on CB-164:
------------------------------

Changing the Network plugin to a synchronous plugin and removing {{setKeepCallback(true)}} on the PluginResult seems to fix it on my end.

Once the back button issue is resolved I'll commit it.
                
> On location.reload(), onDeviceReady() function is not firing in Android
> -----------------------------------------------------------------------
>
>                 Key: CB-164
>                 URL: https://issues.apache.org/jira/browse/CB-164
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.3.0
>            Reporter: Simon MacDonald
>            Assignee: Filip Maj
>             Fix For: 1.7.0
>
>
> When the page is loaded onDeviceready() function is fired ,
> when i tried to reload the page using location.reload() it is not
> fired.
> Note : It is working fine when i used PhoneGap-0.9.5.js

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CB-164) On location.reload(), onDeviceReady() function is not firing in Android

Posted by "Joe Bowser (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-164?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13255921#comment-13255921 ] 

Joe Bowser commented on CB-164:
-------------------------------

Actually, no. Here's the offending error:

D/CordovaLog(19514): JSCallback Error: Request failed.
D/CordovaLog(19514): file:///android_asset/www/cordova-1.6.1.js: Line 3553 : JSCallback Error: Request failed.
I/Web Console(19514): JSCallback Error: Request failed. at file:///android_asset/www/cordova-1.6.1.js:3553
D/dalvikvm(19514): GC_CONCURRENT freed 17K, 2% free 15147K/15303K, paused 6ms+1ms

If we can't get the callback server, how are we going to do onDeviceReady? 
                
> On location.reload(), onDeviceReady() function is not firing in Android
> -----------------------------------------------------------------------
>
>                 Key: CB-164
>                 URL: https://issues.apache.org/jira/browse/CB-164
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.3.0
>            Reporter: Simon MacDonald
>            Assignee: Joe Bowser
>             Fix For: 1.7.0
>
>
> When the page is loaded onDeviceready() function is fired ,
> when i tried to reload the page using location.reload() it is not
> fired.
> Note : It is working fine when i used PhoneGap-0.9.5.js

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (CB-164) On location.reload(), onDeviceReady() function is not firing in Android

Posted by "Filip Maj (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-164?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Filip Maj resolved CB-164.
--------------------------

    Resolution: Fixed

Fixed this properly in [81059b|http://git-wip-us.apache.org/repos/asf?p=incubator-cordova-android.git;a=commit;h=81059b398f7d739c186f34bdec696885ed31f377].

Added back {{setKeepCallback(true)}} so that changes in network connectivity send the response back to the proper callback in JS. Left the plugin as synchronous, to fix this issue.
                
> On location.reload(), onDeviceReady() function is not firing in Android
> -----------------------------------------------------------------------
>
>                 Key: CB-164
>                 URL: https://issues.apache.org/jira/browse/CB-164
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.3.0
>            Reporter: Simon MacDonald
>            Assignee: Filip Maj
>             Fix For: 1.7.0
>
>
> When the page is loaded onDeviceready() function is fired ,
> when i tried to reload the page using location.reload() it is not
> fired.
> Note : It is working fine when i used PhoneGap-0.9.5.js

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Assigned] (CB-164) On location.reload(), onDeviceReady() function is not firing in Android

Posted by "Joe Bowser (Assigned) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-164?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joe Bowser reassigned CB-164:
-----------------------------

    Assignee: Filip Maj  (was: Joe Bowser)
    
> On location.reload(), onDeviceReady() function is not firing in Android
> -----------------------------------------------------------------------
>
>                 Key: CB-164
>                 URL: https://issues.apache.org/jira/browse/CB-164
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.3.0
>            Reporter: Simon MacDonald
>            Assignee: Filip Maj
>             Fix For: 1.7.0
>
>
> When the page is loaded onDeviceready() function is fired ,
> when i tried to reload the page using location.reload() it is not
> fired.
> Note : It is working fine when i used PhoneGap-0.9.5.js

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CB-164) On location.reload(), onDeviceReady() function is not firing in Android

Posted by "Joe Bowser (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-164?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13257033#comment-13257033 ] 

Joe Bowser commented on CB-164:
-------------------------------

Need help with JS events, The bug looks asynchronous and hard!
                
> On location.reload(), onDeviceReady() function is not firing in Android
> -----------------------------------------------------------------------
>
>                 Key: CB-164
>                 URL: https://issues.apache.org/jira/browse/CB-164
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.3.0
>            Reporter: Simon MacDonald
>            Assignee: Filip Maj
>             Fix For: 1.7.0
>
>
> When the page is loaded onDeviceready() function is fired ,
> when i tried to reload the page using location.reload() it is not
> fired.
> Note : It is working fine when i used PhoneGap-0.9.5.js

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CB-164) On location.reload(), onDeviceReady() function is not firing in Android

Posted by "Simon MacDonald (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-164?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13257939#comment-13257939 ] 

Simon MacDonald commented on CB-164:
------------------------------------

Cool, I've tried it out on my side and everything is back to working. The on/offline events fire and navigator.network.connection.type is being set properly as you move from network type to network type. I'm not 100% sold on changing this to sync but a) it fixes the bug and b) the initial call into the NetworkManager does a:

    NetworkInfo info = sockMan.getActiveNetworkInfo();

which should be pretty fast. This change is early enough in the 1.7.0 that we should be able to give it lots of soak time. 
                
> On location.reload(), onDeviceReady() function is not firing in Android
> -----------------------------------------------------------------------
>
>                 Key: CB-164
>                 URL: https://issues.apache.org/jira/browse/CB-164
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.3.0
>            Reporter: Simon MacDonald
>            Assignee: Filip Maj
>             Fix For: 1.7.0
>
>
> When the page is loaded onDeviceready() function is fired ,
> when i tried to reload the page using location.reload() it is not
> fired.
> Note : It is working fine when i used PhoneGap-0.9.5.js

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CB-164) On location.reload(), onDeviceReady() function is not firing in Android

Posted by "Joe Bowser (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-164?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13255917#comment-13255917 ] 

Joe Bowser commented on CB-164:
-------------------------------

That doesn't seem to be it.  If I put a breakpoint on the onPageFinished, it fires.  I'm thinking that there's a JS issue behind this.
                
> On location.reload(), onDeviceReady() function is not firing in Android
> -----------------------------------------------------------------------
>
>                 Key: CB-164
>                 URL: https://issues.apache.org/jira/browse/CB-164
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.3.0
>            Reporter: Simon MacDonald
>            Assignee: Joe Bowser
>             Fix For: 1.7.0
>
>
> When the page is loaded onDeviceready() function is fired ,
> when i tried to reload the page using location.reload() it is not
> fired.
> Note : It is working fine when i used PhoneGap-0.9.5.js

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CB-164) On location.reload(), onDeviceReady() function is not firing in Android

Posted by "Simon MacDonald (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-164?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13242404#comment-13242404 ] 

Simon MacDonald commented on CB-164:
------------------------------------

I can still reproduce this in 1.6.0rc1. However it doesn't seem to have any negative consequences as PhoneGap commands still work.
                
> On location.reload(), onDeviceReady() function is not firing in Android
> -----------------------------------------------------------------------
>
>                 Key: CB-164
>                 URL: https://issues.apache.org/jira/browse/CB-164
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.3.0
>            Reporter: Simon MacDonald
>            Assignee: Joe Bowser
>             Fix For: 1.7.0
>
>
> When the page is loaded onDeviceready() function is fired ,
> when i tried to reload the page using location.reload() it is not
> fired.
> Note : It is working fine when i used PhoneGap-0.9.5.js

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CB-164) On location.reload(), onDeviceReady() function is not firing in Android

Posted by "Joe Bowser (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-164?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joe Bowser updated CB-164:
--------------------------

    Fix Version/s: 1.7.0
    
> On location.reload(), onDeviceReady() function is not firing in Android
> -----------------------------------------------------------------------
>
>                 Key: CB-164
>                 URL: https://issues.apache.org/jira/browse/CB-164
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.3.0
>            Reporter: Simon MacDonald
>            Assignee: Joe Bowser
>             Fix For: 1.7.0
>
>
> When the page is loaded onDeviceready() function is fired ,
> when i tried to reload the page using location.reload() it is not
> fired.
> Note : It is working fine when i used PhoneGap-0.9.5.js

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CB-164) On location.reload(), onDeviceReady() function is not firing in Android

Posted by "Joe Bowser (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-164?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13190044#comment-13190044 ] 

Joe Bowser commented on CB-164:
-------------------------------

May be fixed with CB-190 work and change in how history is managed.
                
> On location.reload(), onDeviceReady() function is not firing in Android
> -----------------------------------------------------------------------
>
>                 Key: CB-164
>                 URL: https://issues.apache.org/jira/browse/CB-164
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.3.0
>            Reporter: Simon MacDonald
>            Assignee: Joe Bowser
>
> When the page is loaded onDeviceready() function is fired ,
> when i tried to reload the page using location.reload() it is not
> fired.
> Note : It is working fine when i used PhoneGap-0.9.5.js

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CB-164) On location.reload(), onDeviceReady() function is not firing in Android

Posted by "Hayden Shaw (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-164?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13184420#comment-13184420 ] 

Hayden Shaw commented on CB-164:
--------------------------------

I can confirm this issue also.  However after repeated clicks it sometimes works.
                
> On location.reload(), onDeviceReady() function is not firing in Android
> -----------------------------------------------------------------------
>
>                 Key: CB-164
>                 URL: https://issues.apache.org/jira/browse/CB-164
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.3.0
>            Reporter: Simon MacDonald
>
> When the page is loaded onDeviceready() function is fired ,
> when i tried to reload the page using location.reload() it is not
> fired.
> Note : It is working fine when i used PhoneGap-0.9.5.js

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CB-164) On location.reload(), onDeviceReady() function is not firing in Android

Posted by "Filip Maj (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-164?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13257358#comment-13257358 ] 

Filip Maj commented on CB-164:
------------------------------

Bryce is right. It looks like the CordovaConnectionReady Channel is not being fired during JS bootup.

It looks like the JS is waiting for the callback server to respond to the Network Status connection info request. Eventually times out. I also see this in my logcat:

{noformat}
W/webview ( 9324): java.lang.Throwable: Warning: A WebView method was called on thread 'Thread-5329'. All WebView methods must be called on the UI thread. Future versions of WebView may not support use on other threads.
W/webview ( 9324): 	at android.webkit.WebView.checkThread(WebView.java:9355)
W/webview ( 9324): 	at android.webkit.WebView.stopLoading(WebView.java:2198)
W/webview ( 9324): 	at org.apache.cordova.DroidGap$1$1.run(DroidGap.java:410)
W/webview ( 9324): 	at java.lang.Thread.run(Thread.java:856)
E/DroidGap( 9324): DroidGap: TIMEOUT ERROR! - calling webViewClient
D/CordovaLog( 9324): JSCallback Error: Request failed. HTTP status: 0
D/CordovaLog( 9324): file:///android_asset/www/cordova.android.js: Line 3558 : JSCallback Error: Request failed. HTTP status: 0
I/Web Console( 9324): JSCallback Error: Request failed. HTTP status: 0 at file:///android_asset/www/cordova.android.js:3558
{noformat}

Will investigate tomorrow if the {{exec}} request for the network status is making its way into native, and dig deeper into the issue from there.
                
> On location.reload(), onDeviceReady() function is not firing in Android
> -----------------------------------------------------------------------
>
>                 Key: CB-164
>                 URL: https://issues.apache.org/jira/browse/CB-164
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.3.0
>            Reporter: Simon MacDonald
>            Assignee: Filip Maj
>             Fix For: 1.7.0
>
>
> When the page is loaded onDeviceready() function is fired ,
> when i tried to reload the page using location.reload() it is not
> fired.
> Note : It is working fine when i used PhoneGap-0.9.5.js

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CB-164) On location.reload(), onDeviceReady() function is not firing in Android

Posted by "Bryce Curtis (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-164?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13242651#comment-13242651 ] 

Bryce Curtis commented on CB-164:
---------------------------------

The reason deviceready isn't firing is because onCordovaConnectionReady isn't firing.  The problem appears to be that NetworkConnection.getInfo() isn't called from native side.
                
> On location.reload(), onDeviceReady() function is not firing in Android
> -----------------------------------------------------------------------
>
>                 Key: CB-164
>                 URL: https://issues.apache.org/jira/browse/CB-164
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.3.0
>            Reporter: Simon MacDonald
>            Assignee: Joe Bowser
>             Fix For: 1.7.0
>
>
> When the page is loaded onDeviceready() function is fired ,
> when i tried to reload the page using location.reload() it is not
> fired.
> Note : It is working fine when i used PhoneGap-0.9.5.js

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CB-164) On location.reload(), onDeviceReady() function is not firing in Android

Posted by "Joe Bowser (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-164?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13256945#comment-13256945 ] 

Joe Bowser commented on CB-164:
-------------------------------

Looked into this. The Callback Server doesn't comeback fast enough anymore for loading multiple pages. Not sure what we should do at this point, since it seems like it's more of a Callback Server bug and a nasty one at that.
                
> On location.reload(), onDeviceReady() function is not firing in Android
> -----------------------------------------------------------------------
>
>                 Key: CB-164
>                 URL: https://issues.apache.org/jira/browse/CB-164
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.3.0
>            Reporter: Simon MacDonald
>            Assignee: Joe Bowser
>             Fix For: 1.7.0
>
>
> When the page is loaded onDeviceready() function is fired ,
> when i tried to reload the page using location.reload() it is not
> fired.
> Note : It is working fine when i used PhoneGap-0.9.5.js

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (CB-164) On location.reload(), onDeviceReady() function is not firing in Android

Posted by "Filip Maj (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-164?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Filip Maj resolved CB-164.
--------------------------

    Resolution: Fixed

Resolved by changing Network plugin to synchronous (from async). The actual {{exec}} flow within the plugin does not need to be async (I'm pretty sure - correct me if I'm wrong there). Some combination of using {{setKeepCallback(true)}} on a PluginResult that returns immediately + running the plugin's {{exec}} method on a different thread (async) causing the issue.

Fixed in [31d5a9|http://git-wip-us.apache.org/repos/asf?p=incubator-cordova-android.git;a=commit;h=31d5a94ea917fc0147a18435a458630d0ff2181b].
                
> On location.reload(), onDeviceReady() function is not firing in Android
> -----------------------------------------------------------------------
>
>                 Key: CB-164
>                 URL: https://issues.apache.org/jira/browse/CB-164
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.3.0
>            Reporter: Simon MacDonald
>            Assignee: Filip Maj
>             Fix For: 1.7.0
>
>
> When the page is loaded onDeviceready() function is fired ,
> when i tried to reload the page using location.reload() it is not
> fired.
> Note : It is working fine when i used PhoneGap-0.9.5.js

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Issue Comment Edited] (CB-164) On location.reload(), onDeviceReady() function is not firing in Android

Posted by "Joe Bowser (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-164?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13257573#comment-13257573 ] 

Joe Bowser edited comment on CB-164 at 4/19/12 4:17 PM:
--------------------------------------------------------

The webview error is a red herring and is from loadUrlIntoView, which actually isn't called at all when you use location.reload().  I recommend adding logs to the callback server and seeing what is being passed out and whether it makes it.  The onCordovaConnectionReady is being called, and is coming back out, but it's not actually being read it seems.
                
      was (Author: bowserj):
    The webview error is a red herring and is from loadUrlIntoView, which actually isn't called at all when you use location.reload().  I recommend adding logs to the callback server and seeing what is being passed out and whether it makes it.  
                  
> On location.reload(), onDeviceReady() function is not firing in Android
> -----------------------------------------------------------------------
>
>                 Key: CB-164
>                 URL: https://issues.apache.org/jira/browse/CB-164
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.3.0
>            Reporter: Simon MacDonald
>            Assignee: Filip Maj
>             Fix For: 1.7.0
>
>
> When the page is loaded onDeviceready() function is fired ,
> when i tried to reload the page using location.reload() it is not
> fired.
> Note : It is working fine when i used PhoneGap-0.9.5.js

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Reopened] (CB-164) On location.reload(), onDeviceReady() function is not firing in Android

Posted by "Filip Maj (Reopened) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-164?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Filip Maj reopened CB-164:
--------------------------


Simon found out that changing networks isn't updating the JS side properly.

Reopening the issue for now until I patch it properly. Sorry all!
                
> On location.reload(), onDeviceReady() function is not firing in Android
> -----------------------------------------------------------------------
>
>                 Key: CB-164
>                 URL: https://issues.apache.org/jira/browse/CB-164
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.3.0
>            Reporter: Simon MacDonald
>            Assignee: Filip Maj
>             Fix For: 1.7.0
>
>
> When the page is loaded onDeviceready() function is fired ,
> when i tried to reload the page using location.reload() it is not
> fired.
> Note : It is working fine when i used PhoneGap-0.9.5.js

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira