title: alam clock in ionic cordova application
body: <p>I am using <a href="https://github.com/uniclau/AlarmPlugin" rel="nofollow">https://github.com/uniclau/AlarmPlugin</a> plugin to build an alarm clock application using ionic cordova framework .</p>
  
  <pre><code>     Var myApp = angular.module('myApp', ['ionic']);
      myApp.controller('MainCtrl', function($scope, $ionicModal) { 
  
      var alarmDate = new Date();
      navigator.plugins.alarm.set(alarmDate, 
      function(){
        // SUCCESS
      }, 
      function(){
        // ERROR
      });
  
      })
  </code></pre>
  
  <p>This is my controller and i am getting Error Message like 
        " TypeError: Cannot read property 'set' of undefined " at </p>
  
  <pre><code>   navigator.plugins.alarm.set(alarmDate,  
  </code></pre>
  
  <p>this line , i dont know how to solve this , can anyone help me with this.</p>
  
  <p>Thanks.</p>