cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andres Zsogon (JIRA)" <>
Subject [jira] [Commented] (CB-6664) Android/Cordova inAppBrowser doesn't use application cache
Date Sun, 17 Sep 2017 16:49:02 GMT


Andres Zsogon commented on CB-6664:

To allow the app cache to grow indefinitely is a very bad idea, not everyone has devices with
64 GB of internal memory. Accoding to [this|],
*setAppCacheMaxSize *has been deprecated because "_in the future cache will be managed automatically_"

Well, "the future" is here and I don't see any Android device whatsoever auto-clearing the
cache. *Cache grows and grows until the entire phone memory has been depleted* and the device
becomes unusable and no apps can be update nor downloaded anymore, so the (ignorant) user
(which are all of them) must go and buy a new device. Clearly this is by design just to sell
more phones. Device manufacturers want caches depleted as soon as possible to render phones
artificially obsolete, but we must take the appropriate steps to avoid this.

[~bowserj] The *Issues* tab has been disabled in [cordova-plugin-inappbrowser|],
so there's no possibility to discuss or report issues there.

> Android/Cordova inAppBrowser doesn't use application cache
> ----------------------------------------------------------
>                 Key: CB-6664
>                 URL:
>             Project: Apache Cordova
>          Issue Type: New Feature
>          Components: Ionic
>    Affects Versions: 3.4.0
>         Environment: Android 4.4.2
>            Reporter: Nick Redding
>              Labels: inappbrowser,, webview
> I'm using the latest Cordova platform which has a supposed fix (CB-2282) to enable AppCache,
but it doesn't seem to work on Android 4.4.2. This simple test illustrates (this is the startup
javascript for the app):
> {code:title=index.js|borderStyle=solid}
> var app = {
>     // Application Constructor
>     initialize: function() {
>         this.bindEvents();
>     },
>     bindEvents: function() {
>         document.addEventListener('deviceready', this.onDeviceReady, false);
>     },
>     onDeviceReady: function() {
>         app.receivedEvent();
>     },
>     receivedEvent: function(id) {
>         var url = '';
>         var ref =,'_blank',
>             'location=no,hidden=yes,toolbar=no,enableViewportScale=yes,transitionstyle=crossdissolve');
>         ref.addEventListener('loadstop', function(event) { 
>   ;
>         });
>     }
> };
> {code}
> The example page html5demos/offlineapp clearly shows app caching in effect when run from
the Chrome browser, but this Cordova app shows no app cache in effect.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message