Skip to content
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

The title field in the push notification should be nullable #532

Closed
ttypic opened this issue Jul 23, 2024 · 0 comments · Fixed by #535
Closed

The title field in the push notification should be nullable #532

ttypic opened this issue Jul 23, 2024 · 0 comments · Fixed by #535
Assignees
Labels
bug Something isn't working. It's clear that this does need to be fixed.

Comments

@ttypic
Copy link
Contributor

ttypic commented Jul 23, 2024

If push notification come without title field SDK throws exception:

The following _TypeError was thrown during a platform message callback:
type 'Null' is not a subtype of type 'String' in type cast

When the exception was thrown, this was the stack:
#0      new Notification.fromMap
(package:ably_flutter/src/push_notifications/src/notification.dart:29:42)
#1      new RemoteMessage.fromMap
(package:ably_flutter/src/push_notifications/src/remote_message.dart:37:28)
#2      Codec._decodeRemoteMessage
...

┆Issue is synchronized with this Jira Task by Unito

@ttypic ttypic added the bug Something isn't working. It's clear that this does need to be fixed. label Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working. It's clear that this does need to be fixed.
Development

Successfully merging a pull request may close this issue.

1 participant