Monday 15 February 2010

android - PhoneGap webview function calls from native code not executing after font change -



android - PhoneGap webview function calls from native code not executing after font change -

i'm developing app has partial functionality implemented in phonegap , partial in native android. it's works great mostly. don't save state when app killed os on configuration change, memory recovering etc. when came app after font change, phonegap function calls native code don't execute, rather these calls beingness queued @ phonegap side. when action performed on phonegap webview, queued calls executed. have thought unusual behavior.

fixed after debugging in cordova. having few plugin calls in onresume() on main activity. when app resumed after oncreate() called followed onresume() , process faster normal launch. cordava not loaded in time plugin calls, in onresume() followed after coming plugin calls, stucked in cordova queue , never executed again. fix, skipped plugin calls in onresume() when savedinstancestate != null.

android cordova cordova-plugins cordovawebview

No comments:

Post a Comment