title: How to use cordova-diagnostic-plugin with meteor?
body: <p>I was using Cordova diagnostic plugin-<a href="https://github.com/dpa99c/cordova-diagnostic-plugin" rel="nofollow">https://github.com/dpa99c/cordova-diagnostic-plugin</a> , added it using meteor add cordova:cordova.plugins.diagnostic@1.1.0 , i wrote the code like below as mentioned in plugin github readme </p>
  
  <pre><code>if (Meteor.isCordova) {
  document.addEventListener("deviceready", onDeviceReady, false);
  function onDeviceReady(){
      cordova.plugins.diagnostic.isLocationEnabled(function(enabled){
          console.log("Location is " + (enabled ? "enabled" : "disabled"));
      }, function(error){
          console.error("The following error occurred: "+error);
      });
   }
   }
  </code></pre>
  
  <p>But i am getting error as shown below </p>
  
  <blockquote>
    <p>Uncaught TypeError:Cannot read Property 'diagnostic' of undefined</p>
  </blockquote>
  
  <p>Any help on how to use this plugin in meteor.</p>