Skip to content

[v3] Impossible to register multiple listeners to the same ref on iOS #170

@gvarandas

Description

@gvarandas

It is impossible to register multiple listeners to the same ref on iOS.
Example:

const LIST_KEY = 'path/to/data';
firestack.database.ref(LIST_KEY).on('value', handleValueChange);
firestack.database.ref(LIST_KEY).on('value', handleValueChange2);

The second listener never gets registered and instead throws a warning when the callback is called (possible promise reject).
On Android the same implementation works fine.

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions