kirillzyusko / react-native-wifi-p2p

Library that provide access for working with wi-fi direct (p2p) module in android.
174 stars 32 forks source link

Group creation is not defined on real-time #18

Closed xnjoorod closed 4 years ago

xnjoorod commented 4 years ago

Device A:

Device B:

Using the master version of react-native-wifi-p2p or the project itself for demonstration of the library API, I'm not able to represent a group creation in real-time on the opposite device under these two devices, by getting the available devices, even though it is available on connection info. Is this a known issue for the newer Android devices or so? Without this, I can't either connect.

To Reproduce Steps to reproduce the behavior:

  1. Open the example app
  2. Create Group
  3. On the guest (client that will connect to the group owner), press Get Available Devices button, and you'll get "isGroupOwner": false.
kirillzyusko commented 4 years ago

Hi @DarkDracoon Are you able to get available peers/discover them?

xnjoorod commented 4 years ago

Yes @kirillzyusko, although the "isGroupOwner" has a really large delay on showing as a group owner.

kirillzyusko commented 4 years ago

@DarkDracoon Did you request COARSE_LOCATION and FINE_LOCATION permissions? Also you need turn on GPS/Location service: https://stackoverflow.com/questions/50475371/android-wifi-direct-p2p-not-able-to-find-peers-on-android-8/53149375#53149375

xnjoorod commented 4 years ago

Yes @kirillzyusko , I did turn on Location and requested the specific permissions. I may debug that tomorrow.

kirillzyusko commented 4 years ago

@DarkDracoon I'm looking forward to your results😎

kirillzyusko commented 4 years ago

@DarkDracoon Hi, any updates?

kirillzyusko commented 4 years ago

Closed due to inactivity.