Hi @zwacky
have tried ur solution, i added the code at:
CordovaActivity.java
/**
* Called when the system is about to start resuming a previous activity.
*/
@Override
protected void onPause() {
super.onPause();
LOG.d(TAG, "Paused the activity.");
if (this.appView != null) {
// CB-9382 If there is an activity that started for result and main activity is waiting for callback
// result, we shoudn't stop WebView Javascript timers, as activity for result might be using them
boolean keepRunning = this.keepRunning || this.cordovaInterface.activityResultCallback != null;
this.appView.handlePause(keepRunning);
this.appView.clearCache(true);
}
}
tried with few android devices 4.4 and 5.0 and working fine so far, data stop growing like mad.
Thanks