Hi,
I’ve started working with push notification, and everything works fine while using dev_push=true.
However when i set dev_push=false i can’t it to work.
The weird things is that it seems like my device is not recognized correctly. In the chrome console see log appear twice:
$ionicPush:REGISTERED token-value
I registered to the $cordovaPush:tokenReceived event, like this:
$rootScope.$on(‘$cordovaPush:tokenReceived’, function(event, data) {
console.debug('Ionic Push: Got token ', data.token, data.platform);
});
and I see that the event is sent twice - once with platform ios and once with android
When I send a one time notification from the ionic dashboard nothing happens. Checking the message status gives this:
{"app_id":"4f0867d9","status":"Failed","ios":{"sent":0,"success":false,"failure_reason":"Push Error Code 302: See http://docs.ionic.io/docs/push-error-codes for more info."},"errors":[]}
Anyone knows what could be the problem and how to fix it?
Thanks.
Dan.