You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Filip Maj (Resolved) (JIRA)" <ji...@apache.org> on 2012/04/19 21:48:41 UTC
[jira] [Resolved] (CB-164) On location.reload(), onDeviceReady()
function is not firing in Android
[ 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