Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-6664

Android/Cordova inAppBrowser doesn't use application cache

    XMLWordPrintableJSON

    Details

      Description

      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):

      index.js
      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();
              });
          }
      };
      

      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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              nickredding Nick Redding
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: