Allowing FileOpener plugin to work in DevApp and Ionic View?


#1

FileOpener is not currently supported in Ionic View or DevApp. https://ionicframework.com/docs/pro/view.html#plugin-support

Would be awesome if we could open files from the DevApp. Is there a plan to implement this?

Also, is there a workaround for opening files in the DevApp in the meantime not using the Cordova plugin? I’ve tried to use Web APIs (a.click /w Blob and window.open), but they fail silently on the DevApp.

let a = document.createElement('a');
      a.href = window.URL.createObjectURL(blob);
      a.download = filename;
      document.body.appendChild(a);
      a.click();
      document.body.removeChild(a);
      window.URL.revokeObjectURL(a.href);