You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2018/08/19 00:05:30 UTC

[GitHub] humblecoder opened a new issue #328: Trouble using plugin in VueJS context

humblecoder opened a new issue #328: Trouble using plugin in VueJS context
URL: https://github.com/apache/cordova-plugin-camera/issues/328
 
 
   Having serious trouble making use of the plugin in the browser.  I am not explicitly calling `onDeviceReady` anywhere, because I'm not sure where it makes sense in a Vue context.  That said, I have the following method being called in a `@click` event (using ES6):
   
   ```
   picFromCamera(){
         console.log(navigator.camera)
         navigator.camera.getPicture(
           (data)=>{
             console.log(data)  //NOTHING HAPPENING, NOT GETTING FIRED?
           },
           (err)=>{console.log(err) //NOTHING HAPPENING, NOT GETTING FIRED?}, 
   	{
       		sourceType:Camera.PictureSourceType.CAMERA,
   	        quality:50,
       		destinationType:Camera.DestinationType.DATA_URL,
           	// popoverOptions: new CameraPopoverOptions(300, 300, 100, 100, Camera.PopoverArrowDirection.ARROW_ANY)
       	});
       },
   ```
   
   The console successfully outputs the `navigator.camera` object, however it doesn't appear that `getPicture()` does anything.  I receive no errors or feedback of any sort.
   
   I am running the following commands in order to ensure that anything I might be missing is getting built and served:
   
   ```
   qvn2018 yarn run build && cordova build && cordova serve
   ```
   
   
   I have the following versions installed:
   
   ```
   node --version
   v8.11.4
   yarn --version
   1.9.4
   cordova --version
   8.0.0
   
   cordova platform ls
   Installed platforms:
     browser 5.0.4
     ios 4.5.5
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org