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

Push notification not working when device is locked or idle for too long

$
0
0

@eldy wrote:

push notification not working when device is locked or idle for too long. I used exactly same code in here http://docs.ionic.io/docs/push-full-setup

.run(function($ionicPlatform) {
$ionicPlatform.ready(function() {
var push = new Ionic.Push({
"debug": true
});

push.register(function(token) {
  console.log("Device token:",token.token);
  push.saveToken(token);  // persist the token in the Ionic Platform
});

});
})

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49078

Trending Articles



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