You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am able only to receive a notification on the status bar when the app is in the background. In the old plugin there was a possibility to receive it in the background and foreground in the status bar by using the following:
if(!window.plugins) {
window.plugins = {};
}
if (!window.plugins.pushNotification) {
window.plugins.pushNotification = new PushNotification();
}
window.plugins.statusBarNotification.notify(data.tag,data.title,data.message);
But in the latest push plugin I cannot use the above because I have to pass a options parameter when I use new PushNotification() which I don't know what it should be. (I tried to pass android attribute with the project id as object but still it did not work).
Any help would be appreciated.
Thank you.
The text was updated successfully, but these errors were encountered:
I ended by doing a very dirty job, go to GCMintentService.java & add this line createNotification(context, extras); you will have something like this: extras.putBoolean("foreground", true); PushPlugin.sendExtras(extras); createNotification(context, extras);
But right now I'm trying to fix notifications display when the app is not running , do you have a fix to this issue?
Hello,
I am able only to receive a notification on the status bar when the app is in the background. In the old plugin there was a possibility to receive it in the background and foreground in the status bar by using the following:
if(!window.plugins) {
window.plugins = {};
}
if (!window.plugins.pushNotification) {
window.plugins.pushNotification = new PushNotification();
}
window.plugins.statusBarNotification.notify(data.tag,data.title,data.message);
But in the latest push plugin I cannot use the above because I have to pass a options parameter when I use new PushNotification() which I don't know what it should be. (I tried to pass android attribute with the project id as object but still it did not work).
Any help would be appreciated.
Thank you.
The text was updated successfully, but these errors were encountered: