Skip to content

Get notifications in the status bar when the app is running #696

@mbachaalani

Description

@mbachaalani

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions