Closed qalqi closed 5 years ago
@qalqi Do I correct understand, that you want to connect Android device with iOS using p2p connection?
Yep
I'm afraid you can't... Because mutipeer connectivity cannot connect iOS and Android devices. It's not a react-native restriction - it's a platform restriction (since they are used different approach in realisation) :( You need to write your own implementation I think
I was able to connect a Windows device, a macbook device and a iOS device to WIFI direct group created by createGroup
Only thing I need now, at least in iOS device to be able to send a message to another android device or to android group owner
Hm, have you tried to call send
function from react-native-multipeer
?
Or call sendMessage
on Android side in order to send some data to iOS devices?
iOS to iOS, peer advertising and connecting is working fine. Create a WIFI Direct group from one Android device and able to connect to it with WIFI Direct group passphrase then create a Multipeer iOS to iOS connection.
Now, Android to iOS is something I haven't been able to figure out.
I think, I can't help you with this issue, unfortunately. If you find a solution, please, write it here
@qalqi And also you can have a look on https://developers.google.com/nearby/
@qalqi I close this issue. If you find something interesting, please leave your comment here. Thank you in advance.
iOS to iOS, peer advertising and connecting is working fine. Create a WIFI Direct group from one Android device and able to connect to it with WIFI Direct group passphrase then create a Multipeer iOS to iOS connection.
Now, Android to iOS is something I haven't been able to figure out.
please did you find a solution
@qalqi i have the same situation and i like to know how can i test the react-native-multipeer on real device ios what should i use wifi or hotspot and also have you find a solution for send message from android to ios ??
As I can understand it's not possible. Even with usage native languages (not RN)
As I can understand it's not possible. Even with usage native languages (not RN)
did you have any idea how to test multipeer on real device ?
@hajermay not really. If you want to test multipeer library (between two iOS devices), it's better to ask your question in issues of multipeer library. Also you may find it useful: https://stackoverflow.com/questions/28906948/peer-to-peer-android-and-ios-with-wifi-direct-multipeer-connectivity
Can you please illustrate how do we communicate with iOS devices with
react-native-multipeer
and Android devices withreact-native-wifi-p2p
?