How send gcm message with $http

Hi everyone, i have that send message gcm from my application, but this code not work. Any idea?.

 var msg = {
          'message': 'here is a message. message',
          'title': 'This is a title. title',
          'subtitle': 'This is a subtitle. subtitle',
          'tickerText': 'Ticker text here...Ticker text here...Ticker text here',
          'vibrate': 1,
          'sound': 1,
          'largeIcon': 'large_icon',
          'smallIcon': 'small_icon'
      };

      var data = {
          'registration_ids': ['id1', 'id2'],
          'data': msg
      };

      $http({
        url: "https://android.googleapis.com/gcm/send",
        dataType: "jsonp",
        method: "POST",
        headers: {
          "Authorization": 'key=mykey',
          "Content-Type": "application/javascript",
        },
        data: angular.toJson(data)
      })
      .then(function(response) {
          console.log(response);
      });

Thanks!