-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CustomerIOPushNotificationCallback isn’t called if the app is in the background and the notification doesn’t have a deep link #243
Comments
Hey @tfcporciuncula, thank you for reaching out and raising this. I think I understand what might be happening here, I think you could verify it on your end as well. So, when you add the deep link, and try previewing the payload from the dashboard, you would notice its a custom data payload object wrapped in But when you just have an image in there without the deep link, and if you preview from the dashboard, you would notice the data is under I have raised this with the team, and we are looking into how we can update the flow if you send a push via rich push editor it should always be wrapped under the A workaround for this work for the time being would be to just custom data payload, where you wrap your payload of title, body, and image under |
Yup, I’ve verified what you described on my end, thanks! And I agree the SDK should always work with data messages to keep the behavior consistent — I don’t see any good reason to have notification messages (where Firebase is responsible for the rendering) in the mix. |
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:
But when the notification doesn’t have a deep link, I only see the first message, even though the notification shows up as usual:
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
CustomerIOPushNotificationCallback
won’t be calledExpected behavior
CustomerIOPushNotificationCallback
should always be called.Additional context
I’ve reproduced this on a Pixel 4a running Android 13 so far.
The text was updated successfully, but these errors were encountered: