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 https://github.com/pusher/pusher-websocket-react-native/issues/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.
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 https://github.com/pusher/pusher-websocket-react-native/issues/147.
CHANGELOG