cordova-issues mailing list archives

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

    [ https://issues.apache.org/jira/browse/CB-6664?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16169353#comment-16169353
] 

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|https://developer.android.com/reference/android/webkit/WebSettings.html#setAppCacheMaxSize(long)],
*setAppCacheMaxSize *has been deprecated because "_in the future cache will be managed automatically_"
(SIC).

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|https://github.com/apache/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: https://issues.apache.org/jira/browse/CB-6664
>             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 = 'http://html5demos.com/offlineapp';
>         var ref = window.open(url,'_blank',
>             'location=no,hidden=yes,toolbar=no,enableViewportScale=yes,transitionstyle=crossdissolve');
>         ref.addEventListener('loadstop', function(event) { 
>             ref.show();
>         });
>     }
> };
> {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
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message