Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- this.tab.select(2);
- FCMPlugin.onNotification(function(data){
- if(data.wasTapped){
- //Notification was received on device tray and tapped by the user.
- alert('data was tapped');
- this.tab.select(2);
- //this.navCtrl.push(ViewurgentnewsPage); also tried this
- }else{
- //Notification was received in foreground. Maybe the user needs to be notified.
- alert('this was received on foreground');
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement