Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49171

Ionic 1 Push not emitting inside app

$
0
0

@Riotgear66 wrote:

I am able to recieve push notification just fine on iOS and Android but when I try and handle the push inside my app listing for 'cloud:push:notification' I get nothing. I placed the code in my main controller for the entire app and it is being run just the broadcast I am supposed to listen for is either never sent or just not being caught. I placed in some debug code to log all emits within the app and I am seeing all the emits but never seeing the cloud push broadcast. Any help would be great!

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

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49171

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>