You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Joe Bowser (JIRA)" <ji...@apache.org> on 2015/06/10 18:01:01 UTC
[jira] [Updated] (CB-7058) Cordova onresume event not
working/firing on Android 4.0.3
[ https://issues.apache.org/jira/browse/CB-7058?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Joe Bowser updated CB-7058:
---------------------------
Priority: Minor (was: Major)
> Cordova onresume event not working/firing on Android 4.0.3
> ----------------------------------------------------------
>
> Key: CB-7058
> URL: https://issues.apache.org/jira/browse/CB-7058
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android
> Affects Versions: 3.3.0
> Reporter: Syed shahryar
> Priority: Minor
>
> Here is my event handler code:
> /** Code **/
> //
> function onResume() {
> console.log( 'on resume' );
> }
> //
> function onDeviceReady(){
> document.addEventListener( "pause", function(){console.log('on pause');}, false);
> document.addEventListener( "resume", onResume, false);
> }
> //
> function onLoad() {
> document.addEventListener( "deviceready", onDeviceReady, false );
> }
> /*********/
> I have tried weinre and Android ddms tools for troubleshooting but did not see the "on resume" msg logged on console when I switch between apps during testing on the device. Pause event is working fine however and logging messages.
>
> I am also seeing the underlying on resume events getting called but my event handler for some reason does not get called. Here is what I see in logs.
> 06-30 23:49:50.500: I/CordovaLog(6118): Found start page location: index.html
> 06-30 23:49:50.500: D/CordovaActivity(6118): Resuming the App
> 06-30 23:49:50.500: D/CordovaActivity(6118): CB-3064: The errorUrl is null
> 06-30 23:49:50.510: D/CordovaActivity(6118): onMessage(onPageStarted,file:///android_asset/www/index.html)
> 06-30 23:49:50.610: D/CordovaActivity(6118): onMessage(spinner,stop)
> FYI: Code works fine on iOS simulator.
> Any ideas why this may be happening and how to fix it?
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org