title: Android PushNotifications with PushPlugin on emulator
body: <p>I've been following <a href="https://github.com/hollyschinsky/PushNotificationSample" rel="nofollow">this sample</a> to get android pushNotifications (with GCM) working on an android emulator.
  After <code>$cordovaPush.register(config)</code> I get Ok as response. But it never runs my callback [<code>$scope.$on('$cordovaPush:notificationReceived'</code>].
  And in consequence I never get my registration ID.</p>
  
  <p>I've created a google API project. And I'm using that project Id in the config.senderID when calling <code>$cordovaPush.register(config)</code>.</p>
  
  <p>I've also registered a gmail account into my emulator.</p>
  
  <p>I guess I have 2 questions.</p>
  
  <p>1.Is it possible to get (and register) push notifications on an android emulator?</p>
  
  <ol start="2">
  <li><p>why don't I get a $cordovaPush:notificationReceived event that calls my callback?</p>
  
  <p>app.controller('AppCtrl', function($scope, $cordovaPush, $cordovaDialogs, $cordovaMedia, $cordovaToast, ionPlatform, $http) {
          $scope.notifications = [];</p>
  
  <pre><code>// call to register automatically upon device ready
  ionPlatform.ready.then(function (device) {
      $scope.register();
  });
  
  
  // Register
  $scope.register = function () {
      var config = null;
  
      if (ionic.Platform.isAndroid()) {
          config = {
              "senderID": "12834957xxxx" 
          };
      }
  
      $cordovaPush.register(config).then(function (result) {
          console.log("Register success " + result);
  
          $cordovaToast.showShortCenter('Registered for push notifications');
          $scope.registerDisabled=true;
  
      }, function (err) {
          console.log("Register error " + err)
      });
  }
  
  
  $scope.$on('$cordovaPush:notificationReceived', function (event, notification) {
      console.log(JSON.stringify([notification]));
      if (ionic.Platform.isAndroid()) {
          handleAndroid(notification);
      }
  
  });
  
  // Android Notification Received Handler
  function handleAndroid(notification) {
      // ** NOTE: ** You could add code for when app is in foreground or not, or coming from coldstart here too
      //             via the console fields as shown.
      console.log("In foreground " + notification.foreground  + " Coldstart " + notification.coldstart);
      if (notification.event == "registered") {
          $scope.regId = notification.regid;
          storeDeviceToken("android");
      }
      else if (notification.event == "message") {
          $cordovaDialogs.alert(notification.message, "Push Notification Received");
          $scope.$apply(function () {
              $scope.notifications.push(JSON.stringify(notification.message));
          })
      }
      else if (notification.event == "error")
          $cordovaDialogs.alert(notification.msg, "Push notification error event");
      else $cordovaDialogs.alert(notification.event, "Push notification handler - Unprocessed Event");
  }
  </code></pre></li>
  </ol>