Skip to content

feat: consolidate community contributions for host/port config and Android trigger fix#196

Open
Keith-wright wants to merge 1 commit intomasterfrom
feat/add-host-port-config-and-trigger-fix
Open

feat: consolidate community contributions for host/port config and Android trigger fix#196
Keith-wright wants to merge 1 commit intomasterfrom
feat/add-host-port-config-and-trigger-fix

Conversation

@Keith-wright
Copy link
Copy Markdown
Contributor

Summary

  • Adds host, wsPort, and wssPort configuration options to init(), exposed on both Android and iOS (iOS already handles these natively via the Swift SDK's generic options dictionary)
  • Fixes ReadableNativeMap cannot be cast to java.lang.String crash on Android when calling trigger() with object data — serializes to JSON before passing to the native layer
  • Makes cluster optional in init() to support host-based configurations that don't require a cluster
  • Fixes decodedData variable scoping in the event handler
  • Updates README with new configuration options and fixes several typos
  • Updates example app with optional host, wsPort, and wssPort input fields

Credits

Based on community contributions by:

Closes #100, #147, #158, #161, #165, #180

…droid trigger fix

- Add host, wsPort, wssPort options to init() for Android and iOS
- Make cluster optional to support host-based configurations
- Fix ReadableNativeMap cast error on Android trigger() with object data
- Fix decodedData variable scoping in event handler
- Update README with new config options and fix typos
- Update example app with optional host/wsPort/wssPort input fields
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.

2 participants