Skip to content

CustomerIOPushNotificationCallback isn’t called if the app is in the background and the notification doesn’t have a deep link #243

@tfcporciuncula

Description

@tfcporciuncula

SDK version: 3.6.4

Environment: Development and Production

Are logs available?

There’s something interesting in the logs: while the app is in the background (open or closed), when I send a notification with deep link, I see this:

Received message with empty deliveryId
Handling push message. Bundle: …

But when the notification doesn’t have a deep link, I only see the first message, even though the notification shows up as usual:

Received message with empty deliveryId

So it’s like this is never being called for some reason?

Describe the bug

CustomerIOPushNotificationCallback isn’t being called if we send a notification without a deep link while the app is in the background (open or closed). It works fine if the app is in the foreground, or if the notification has a deep link.

To Reproduce

  • Make sure the app is not in the foreground (either kill it or keep it open but not in the foreground)
  • Send a notification message without a deep link
  • Observe CustomerIOPushNotificationCallback won’t be called

Expected behavior

CustomerIOPushNotificationCallback should always be called.

Additional context

I’ve reproduced this on a Pixel 4a running Android 13 so far.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions