cordova-plugin-camera-preview icon indicating copy to clipboard operation
cordova-plugin-camera-preview copied to clipboard

is there plan for browser platform support?

Open purplepapa opened this issue 7 years ago • 3 comments

We are developing web app, it there a plan to support the platform of browser ?

purplepapa avatar Nov 09 '17 05:11 purplepapa

Because this project is actively seeking maintainers I suppose that browser support is not on anyone's radar right now.

Choppel avatar Feb 24 '18 08:02 Choppel

I would like to start the browser implementation, i just need someone to setup the proxy plugin becouse I cant get how cordova works... cordova.js:74 Uncaught module cordova-plugin-camera-preview.CameraPreview already defined

  1. I added platform support part into plugin.xml
  <platform name="browser">
    <config-file target="config.xml" parent="/*">
      <feature name="CameraPreview">
        <param name="browser-package" value="CameraPreview" />
      </feature>
    </config-file>
    <js-module src="src/browser/CameraPreview.js" name="CameraPreview">
      <runs />
    </js-module>
  </platform>
  1. created proxy file in src/browser/CameraPreview.js
var CameraPreview = function() {};
CameraPreview.startCamera = function(options, onSuccess, onError) {
    alert();
};
module.exports = {
    CameraPreview: CameraPreview
};
require('cordova/exec/proxy').add('CameraPreview', module.exports);

marcusdiy avatar Jun 01 '20 10:06 marcusdiy

@marcusdiy do you have updates regarding your browser support implementation? We are also building a web app and need this feature. If you need assistance in development I would be happy to take a look. I have no prior experience developing cordova plugins but I'm eager to learn 😊

FabianVolkers avatar Sep 05 '20 11:09 FabianVolkers