Skip to content

[Bug]: PushNotificationType doesn't support the reaction.new event type #3703

Closed
@alemar11

Description

@alemar11

Actual behaviour

When a push notification of type "reaction.new" is received, the PushNotificationType is initialized as nil because .reactionNew is not handled.

This behavior causes ChatRemoteNotificationHandler.handleNotification(completion:) to call the completion handler with an UnknownNotificationContent.

Expected behaviour

ChatRemoteNotificationHandler.handleNotification(completion:) should return a valid MessageNotificationContent in the completion when handling a "reaction.new" push notification.

Steps to reproduce

Just add a reaction to a chat message

Which packages are you using?

StreamChat

Which SDK version are you using?

4.80.0

Which iOS version is the issue reproducible?

iOS 18

Which iPhone Device is the issue reproducible?

Which Xcode version are you using?

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐞 BugAn issue or PR related to a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions