-
Notifications
You must be signed in to change notification settings - Fork 978
Description
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.