Device not getting notification with ionic push


#1

in my app.js of ionic app I have this code

angular.module(‘starter’, [‘ionic’,‘starter.controllers’,‘btford.socket-io’])

.run(function($ionicPlatform, $http,config) {
$ionicPlatform.ready(function() {

if (window.cordova && window.cordova.plugins.Keyboard) {
  cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);
  cordova.plugins.Keyboard.disableScroll(true);
}
if (window.StatusBar) {
  StatusBar.styleDefault();
}
  var push = new Ionic.Push({
  "debug": true
});
push.register(function(token) {
  push.saveToken(token);  // persist the token in the Ionic Platform
});

});

})

and I push to ionic push end point, the response I got seems ok, it look like this http://pastebin.com/SjVicY4J

but my device never get the notification. That’s so strange. I have no clue what went wrong.


#2

Really need some help, stuck more than 24 hr…


#3

Did you check the status of your push? Making a GET request to

https://api.ionic.io/push/notifications/<your-notification-uuid>/messages

with the following headers:

Content-Type: application/json
Authorization: Bearer <your-authentication-token>

#4

it’s working now. just so strange sometime I don’t get it. I used another phone, it’s working, not sure is phone problem ><