Notification not send using endpoint API


#1

Sending notification in my dashboard it’s working well,

but when i’m using sending via postman notification never appear in my device

please help me solve this problem !

I’m sorry my english not very well

app.js

.config(function($ionicCloudProvider) {
$ionicCloudProvider.init({
"core": {
  "app_id": "myAppid"
},
"push": {
  "sender_id": "mySenderId",
  "pluginConfig": {
    "ios": {
      "badge": true,
      "sound": true
    },
    "android": {
      "iconColor": "#343434"
    }
  }
}
});
})

controller.js

angular.module('starter.controllers', ['ionic.cloud'])

.controller('DashCtrl', function($scope,$ionicPush) {


$ionicPush.register().then(function(t) {
  return $ionicPush.saveToken(t);
}).then(function(t) {
  console.log('Token saved:', t.token);
$scope.tokennya = t.token;
});


$scope.$on('cloud:push:notification', function(event, data) {
  var msg = data.message;
  alert(msg.title + ': ' + msg.text);
});	
})