@cnpallares wrote:
Hello everyone!
One question with im dealing rigth now. My code is:
var push = $ionicPush.init({
"debug": false,
"onNotification": function(notification) {
//open notification action
$cordovaInAppBrowser.open(notification.payload.url, "_blank",options);
},
"onRegister": function(data) {
console.log(data.token);
}
});With this im receiving my notification in my notification bar (top of screen of my device) only when my app is in background mode. I just already added the follow into 'onNotification':
if(!notification.app.asleep) {
//some code here
}This is the only way i found to see my notification where app is in foreground mode.
There are anyway to receive the notification always in the status bar???
Thanks!
Posts: 1
Participants: 1