Skip to content

Received messages have no event names #366

@robholmes

Description

@robholmes

I've proved the message published contains an event name (using the Ably dev console), but in Android/Java MessageListener callback the name field is null. I believe this is because the string equality check is using "reference equality" == rather than "value equality" String.equals().

Examples of this can be found:

The fix should be to use fieldName.equals("name"), or "name".equals(fieldName) if fieldName could ever be null.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working. It's clear that this does need to be fixed.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions