Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 230577

Android data storage keep growing

$
0
0

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


Viewing all articles
Browse latest Browse all 230577

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>