Currently library does not support peripheral mode, which will allow to send data via BLE between phones. This issue is blocked by support in it's dependent libraries:
@Cierpliwy I could really use this, how can I help?
@Cierpliwy Supposedly the second issue should not be a show stopper and vanilla android gatt server can be used: https://github.com/Polidea/RxAndroidBle/issues/152#issuecomment-432244335
@Cierpliwy Also here is the android implementation done, I can imagine the author won't object if it's used in this library. I can ask him, we're in contact about the ios counterpart.
https://github.com/himelbrand/react-native-ble-peripheral
I think it would be better to have both scanning and advertising in one complete BLE library.
@Cierpliwy @EskelCz did you get anywhere with this request? I'm looking for a BLE peripheral implementation for React-Native as well.
Let me know if there anything I can do to help.
@Cierpliwy I'm just finishing ios version for the react-native-ble-peripheral library (see above)
polidea doesn't seem interested
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Any update on this ? I also need this functionality for detecting phones at proximity
looking for a collaboration, or possibility of a library to have peripheral and central functionality combined. i have a feeling there is one already, since ive been curious how the 'Covid tracer api' made by google and apple works? i guess they already have that ?
Thanks in advance.
since ive been curious how the 'Covid tracer api' made by google and apple works? i guess they already have that ?
Yeah, me too. I had a project that needed something similar to the contact tracing and it was nearly impossible to do. Too draining for the battery to advertise and scan all the time. If you find something please let me know. I invested a ton of time into it and got nowhere. :(
Most helpful comment
@Cierpliwy Also here is the android implementation done, I can imagine the author won't object if it's used in this library. I can ask him, we're in contact about the ios counterpart.
https://github.com/himelbrand/react-native-ble-peripheral
I think it would be better to have both scanning and advertising in one complete BLE library.