Skip to content
This repository was archived by the owner on Feb 7, 2019. It is now read-only.
This repository was archived by the owner on Feb 7, 2019. It is now read-only.

Not getting notifications when in foreground #186

Open

Description

@madsongr

I made some tests and working with push-plugin or firebase plugin the notification is received (I can get the log in console) but not displayed in android shade.

Sending with google's firebase console or curl x post:

  • notification is displayed in shade only in background mode;
  • when in foreground mode I can only see the result in console.log;

Sending with php script:

  • notification is NOT displayed in shade even in background or foreground mode (I can only see the result in console.log);

Is this a bug? It really should display the notifications in any case. Is there any change to be made in code? Some others platforms we can specify the behavior of the incoming notification.

Activity

  1. DimitarTachev commented on Jan 19, 2018

    @DimitarTachev

    Hi @madsongr, as far as I know, when the app is in foreground, Firebase is just calling the onMessageReceived callback.

    If you need to display the notifications in the notifications bar in any case, you could try using the local notifications plugin in your notificationsCallback as a workaround.

  2. madsongr commented on Jan 19, 2018

    @madsongr
    Author

    @DimitarTachev ok, but this is an issue from this plugin, right? Native development and cordova display a new notification even with the app in foreground. We have options to manage the behavior of the incoming notification.

  3. DimitarTachev commented on Jan 22, 2018

    @DimitarTachev

    @madsongr, its something that could be part of the plugin. I marked it with help wanted and feature request in order to be considered for some of the future versions of the plugin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions