I performed the migration to the new version of Ionic services (cloud).
All works fine exept the push notification, while the device still receive the notification, but I’m not able to handle it as described into migration docs with $on (
$scope.$on(‘cloud:push:notification’, function(data) {
var msg = data.message;
alert(msg.title + ': ’ + msg.text);
// never called
});
Not from a migration point of view, but just using the new Ionic Cloud push notifications service setup in the docs I’m not receiving any notifications either, and it seems to have a caught up a couple other people since I found this other post on the forum:
I’ll definitely post something if I figure it out, or find a solution.
Is it $scope.$on(‘cloud:push:notification’,…) OR $ionicEventEmitter.on(‘push:notification’…)? If it is the latter then where is $ionicEventEmitter declared? I looked in the ionic.cloud.js (v0.9.0) and I do not see it. Not sure what the answer is here. Anything conclusive to share? Thanks!