Closed m4dh4t closed 2 months ago
Hi @m4dh4t, it appears that messaging functionality requires certain conditions to be met for proper operation.
SDK Initialization: Confirm that the SDK was properly initialized. The first time you use the SDK, an active internet connection is required to validate your API key and generate a license for offline use.
Permissions: Ensure that both Bluetooth and location permissions are granted for the app, as these are necessary for the SDK to function correctly.
Bluetooth Connection: Device connections rely on Bluetooth, so please verify that the Bluetooth on your device is enabled and functioning properly. Connectivity may also be limited by Bluetooth range and environment.
Offline Messaging: Bridgefy's messaging works offline, but it requires at least two devices with the same app and API key to communicate.
To help us troubleshoot further, please share the following details: The model and OS version of your device(s) The version of React Native you are using
I'll review the shared data and test on similar devices.
Hi @julian-bridgefy, thank you very much for the quick answer. I can confirm you that:
isInitialized
and isStarted
.The permissions have been correctly setup according to the example project, with the following permissions added to the Info.plist
and Podfile:
<key>NSBluetoothAlwaysUsageDescription</key>
<string>Test Bridgefy</string>
<key>NSBluetoothPeripheralUsageDescription</key>
<string>Test Bridgefy</string>
<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
<string>Test Bridgefy</string>
<key>NSLocationAlwaysUsageDescription</key>
<string>Test Bridgefy</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string>Test Bridgefy</string>
setup_permissions([
'Bluetooth',
'Location',
'LocationAccuracy',
'LocationAlways',
'LocationWhenInUse',
])
bridgefyDidSendMessage
delegate method, suggesting something is wrong at sending-time.Two test devices have been used, an iPhone 12 Pro running iOS 18 beta 7 and an iPad Air 5 running iPadOS 17.5.1, with React-Native 0.74.5.
Let me know if there is anything else I could do to help pinpoint the root cause and thank you again for your help.
@m4dh4t Thanks for the update! I'll review it with similar devices. Could you please share with me the Bridgefy React Native version you're using? Yesterday, we released a new version (1.1.6) that solves communication problems.
@julian-bridgefy thank you for reviewing this issue. I just tried using version 1.1.6 (I was running 1.1.5) and I'm still not seeing any feedback from the BridgefyEvents.bridgefyDidSendMessage
method. Would you have any guidance on how to find the specific part at cause ?
Edit: I did not fully rebuild the app dependencies, it actually seems to respond correctly now ! I will keep you updated in case I find anything else but in the meantime thank you very much for your assistance.
Thank you for reaching out!, I believe it's resolved now. I'll go ahead and close the issue for the time being. However, please feel free to reopen it or create a new issue if anything else comes up or if you need further assistance.
I am trying this library and wanted to try the data broadcasting feature using BLE on an iOS device and setup the permission granting based on the repository example project.
Unfortunately it seems like no data is being sent out and when trying to debug further, I saw that upon calling the
Bridgefy.send
method no call tobridgefyDidSendMessage
was made either, althoughbridgefyDidStart
was correctly called.Would you have any guidance on how to debug this matter further ?