You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Nick Redding (JIRA)" <ji...@apache.org> on 2014/05/11 00:14:37 UTC
[jira] [Created] (CB-6664) Android/Cordova inAppBrowser doesn't use
application cache
Nick Redding created CB-6664:
--------------------------------
Summary: 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: CordovaLib
Affects Versions: 3.4.0
Environment: Android 4.4.2
Reporter: Nick Redding
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.2#6252)