Skip to content

FCM push notifications behaviour #5987

@geolyth

Description

@geolyth

Describe the bug
I do not know if it is a bug or not but I wanted to have a clear understanding of what GetStream handles for push notification using FCM.
Currently setting ignorePushMessagesWhenUserOnline = false in

val notificationConfig = NotificationConfig(
                    pushDeviceGenerators = listOf(
                        FirebasePushDeviceGenerator(
                            context = context,
                            providerName = providerName,
                        ),
                    ),
                    ignorePushMessagesWhenUserOnline = false,
                    autoTranslationEnabled = false,
                )

I receive notifications in whatever state of the app (background/foreground).
But currently if I was in a chat (so I was in MessagesScreen) and I put the app in background I continue to receive no notifications.

SDK version

  • 6.26.0

Expected behavior
Receive notifications when the app is in background with the above configuration.

Steps to reproduce

  1. Navigate in a chat
  2. Put app in background
  3. Send a push notification
  4. The push notification is not received also if I set ignorePushMessagesWhenUserOnline = false

Device:

  • Vendor and model: Any
  • Android version: Any

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions