@coreelements wrote:
Finnaly got AWS SNS Mobile Push with IOS working
I can send a message from my AWS console
In the log window in Xcode I can see a notification is recieved
didReceiveNotification Notification received
In my code I've setup a listener to check for notification
document.addEventListener("deviceready", function() { console.log("test device ready"); $rootScope.$on('$cordovaPush:notificationReceived', function(event, notification) { console.log("test : $cordovaPush:notificationReceived"); console.log(notification); }); }, false);
But the event is never fired. I've checked the cordova.js to see wich event is broadcasted:
$rootScope.$broadcast('$cordovaPush:notificationReceived', notification);
some versions
Cordova CLI: 5.1.1
Gulp version: CLI version 3.9.0
Gulp local: Local version 3.9.0
Ionic CLI Version: 1.7.11
Ionic App Lib Version: 0.6.5
ios-deploy version: 1.8.3
ios-sim version: 5.0.4
OS: Mac OS X El Capitan
Node Version: v4.2.2
Xcode version: Xcode 7.2 Build version 7C68
Posts: 1
Participants: 1