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

Fixed error "com.facebook.react.bridge.ReadableNativeMap cannot be cast to java.lang.String." on event trigger (Android) #158

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

emmanuel-nike
Copy link

@emmanuel-nike emmanuel-nike commented Jun 1, 2024

Description

The android native pusher instance for triggering events only accepts data as a string but data is defined as any type (or as an object). Currently, the trigger event function returns an error com.facebook.react.bridge.ReadableNativeMap cannot be cast to java.lang.String. Other users have also experienced this issue here #147.

CHANGELOG

  • Fixed error on android "com.facebook.react.bridge.ReadableNativeMap cannot be cast to java.lang.String." when triggering an event to private or presence channels.

@emmanuel-nike emmanuel-nike changed the title Pass string to android native instance Fixed error on android "com.facebook.react.bridge.ReadableNativeMap cannot be cast to java.lang.String." on event trigger Jun 2, 2024
@emmanuel-nike emmanuel-nike changed the title Fixed error on android "com.facebook.react.bridge.ReadableNativeMap cannot be cast to java.lang.String." on event trigger Fixed error "com.facebook.react.bridge.ReadableNativeMap cannot be cast to java.lang.String." on event trigger (Android) Jun 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant