React Native Google Nearby Messages Versions Save

📲 Communicate with nearby devices using Bluetooth, BLE, WiFi and near-ultrasonic audio. Broadcast and receive small payloads (like strings) using the easy-to-use React Native API!

1.0.13

3 years ago

There's a lot of features here, hold up lemme explain:

  • Add stateful React hooks to implement in your functional components. Note: only one either publication or subscription can be used, not both.
    • useNearbyPublication
    • useNearbySubscription
    • useNearbySearch
    • useNearbyErrorCallback
  • Support different discovery modes such as broadcast, scan or both.
  • Support different discovery mediums such as ble, audio or both. (Android: temporarily also added bluetooth, default and none, those have to be tested because I don't know which is the correct ble int map)
  • Add new initializer for connect() (and the react hooks) which takes an object consisting of the API key, the discovery modes and the discovery mediums.
  • immediately reject promise in Android's connect() instead of silently ignoring them and emitting them through the error event emitter.
  • Fix bug where Android hard-crashes when publishing
  • Fix a lot of other bugs
  • Add TROUBLESHOOTING.md file since apparently there can be a lot of troubles
  • Add NearbyStatus to describe which status the nearby API (hooks) currently is in.
  • Add rename_logging_functions ruby post_install script for the Podfile for those of you who have the duplicate symbol 'google::RemoveLogSink(google::LogSink*)' error (see: troubleshooting (7.))

Check v1.0.13 out on npmjs!

1.0.0

3 years ago
  • Got iOS and Android working stable on my devices for now.
  • Currently only supports BLE.
  • npm published. (v1.0.0)