You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Peter Mosh (JIRA)" <ji...@apache.org> on 2018/02/15 10:50:00 UTC

[jira] [Created] (CB-13881) navigator.camera undefined for versions newer than 2.4.1

Peter Mosh created CB-13881:
-------------------------------

             Summary: navigator.camera undefined for versions newer than 2.4.1
                 Key: CB-13881
                 URL: https://issues.apache.org/jira/browse/CB-13881
             Project: Apache Cordova
          Issue Type: Bug
          Components: cordova-plugin-camera
    Affects Versions: 6.1.1
         Environment: Meteor 1.4.4.4
            Reporter: Peter Mosh


Hi!

This gives me undefined when I use a version *after 2.4.1 :*
{noformat}
document.addEventListener('deviceready', () => {
  console.log('navigator.camera', navigator.camera)
}){noformat}
I am using Meteor 1.4.4.4 and have installed the plugin like this:
{code:java}
meteor add cordova:cordova-plugin-camera@4.0.2{code}
When I instead do this, the camera object is available:
{code:java}
meteor add cordova:cordova-plugin-camera@2.4.1{code}
 

So, to summarize: Versions _3.0.0, 4.0.0, 4.0.1, 4.0.2_ do not work, I always get _undefined_ for _navigator.camera._ I need to switch back to version _2.4.1_ to get the object instead.

 

Thanks for your help in advance!

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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