Feature Request
Motivation Behind Feature
This plugin overwrites standard Web API implementations like:
This causes issues for example with the E2E testing tool Cypress. Specifically the Cypress plugin cypress-file-upload, which relies on the default File API implementation.
Feature Description
Do not overwrite the standard API. It seems that the plugin itself using it's own require method to include the correct JS file. But the plugin.xml file also overwrites the standard Web implementation.
Drawbacks would be that people that are using these exposed overwritten API's would have a problem or need to re-write code. That being said, the adjusted File API that this plugin needs could still be exposed on the window object, but not overwrite the standard API, for example in an own namespace or something like that.
For example expose:
window.File within a cordova namespace, like window.cordova.File
Alternatives or Workarounds
Alternatives would be that tools like Cypress or any other codebase that needs the standard API include a polyfill to get the standard API back again.
Feature Request
Motivation Behind Feature
This plugin overwrites standard Web API implementations like:
window.Filewindow.FileReaderwindow.ProgressEventThis causes issues for example with the E2E testing tool Cypress. Specifically the Cypress plugin
cypress-file-upload, which relies on the default File API implementation.Feature Description
Do not overwrite the standard API. It seems that the plugin itself using it's own
requiremethod to include the correct JS file. But theplugin.xmlfile also overwrites the standard Web implementation.Drawbacks would be that people that are using these exposed overwritten API's would have a problem or need to re-write code. That being said, the adjusted File API that this plugin needs could still be exposed on the window object, but not overwrite the standard API, for example in an own namespace or something like that.
For example expose:
window.Filewithin acordovanamespace, likewindow.cordova.FileAlternatives or Workarounds
Alternatives would be that tools like Cypress or any other codebase that needs the standard API include a polyfill to get the standard API back again.