title: Phonegap Push Plugin is not working giving uncaught type error in Android
body: <p>I am working to get Push Notification in my Hybrid mobile Application build using JQuery Mobile wrapped with Cordova. </p>
  
  <p>I am using Phonegap Push Plugin (<a href="https://github.com/phonegap/phonegap-plugin-push" rel="nofollow">https://github.com/phonegap/phonegap-plugin-push</a>) to facilitate notification functionality in my Application. When I call the init method of the plugin like below, it gives the exception which is stated below the init call.</p>
  
  <pre><code>var push = PushNotification.init({ "android": {"senderID": "XXxxXXxxCXPLcIV0eay5x3mfuQKValzvDT_xxxxxx"},
       "ios": {"alert": "true", "badge": "true", "sound": "true"}, "windows": {} } );
  
  Uncaught TypeError: Object function (options) {
      this._handlers = {
          'registration': [],
          'notification': [],
          'error': []
      };
  
      // require options parameter
      if (typeof options === 'undefined') {
          throw new ...&lt;omitted&gt;...t' index.js:135
  registerForPushNotification index.js:135
  (anonymous function) index.js:80
  n.event.dispatch jquery-2.1.4.min.js:3
  r.handle jquery-2.1.4.min.js:3
  n.event.trigger jquery-2.1.4.min.js:3
  (anonymous function) jquery-2.1.4.min.js:3
  n.extend.each jquery-2.1.4.min.js:2
  n.fn.n.each jquery-2.1.4.min.js:2
  n.fn.extend.trigger jquery-2.1.4.min.js:3
  a.Widget._trigger jquery.mobile-1.4.5.js:15451
  a.Widget._createWidget jquery.mobile-1.4.5.js:15451
  a.widget._createWidget jquery.mobile-1.4.5.js:15451
  (anonymous function) jquery.mobile-1.4.5.js:15451
  a.(anonymous function).(anonymous function) jquery.mobile-1.4.5.js:15451
  (anonymous function) jquery.mobile-1.4.5.js:15451
  n.extend.each jquery-2.1.4.min.js:2
  n.fn.n.each jquery-2.1.4.min.js:2
  a.fn.(anonymous function) jquery.mobile-1.4.5.js:15451
  a.widget.transition jquery.mobile-1.4.5.js:15451
  (anonymous function) jquery.mobile-1.4.5.js:15451
  a.widget.change jquery.mobile-1.4.5.js:15451
  (anonymous function) jquery.mobile-1.4.5.js:15451
  (anonymous function) jquery.mobile-1.4.5.js:15451
  n.extend.each jquery-2.1.4.min.js:2
  n.fn.n.each jquery-2.1.4.min.js:2
  a.fn.(anonymous function) jquery.mobile-1.4.5.js:15451
  a.mobile.changePage jquery.mobile-1.4.5.js:15451
  a.mobile.gradeA.a.extend.initializePage jquery.mobile-1.4.5.js:15451
  (anonymous function) jquery.mobile-1.4.5.js:15451
  j jquery-2.1.4.min.js:2
  k.fireWith jquery-2.1.4.min.js:2
  n.extend.ready jquery-2.1.4.min.js:2
  </code></pre>
  
  <p>To call the init method, I got the file <code>push.js</code> from the <code>plugins/phonegap-plugin-push/www/push.js</code> and placed in project <code>www</code> folder. Also referenced the same in <code>index.html</code></p>
  
  <p>The version of Android project created is,</p>
  
  <pre><code>&lt;uses-sdk android:minSdkVersion="14" android:targetSdkVersion="22" /&gt;
  </code></pre>
  
  <p>Thanks for you help in Advance.</p>