incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Filip Maj (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-164) On location.reload(), onDeviceReady() function is not firing in Android
Date Thu, 19 Apr 2012 08:27:45 GMT

    [ 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

        

Mime
View raw message