aboozaid / react-native-wifi-hotspot

A react-native implementation for handling hotspot requests and make it easier to communicate with peers!
ISC License
40 stars 21 forks source link

How to Communicate Over Wifi? #8

Closed SMKH-PRO closed 4 years ago

SMKH-PRO commented 5 years ago

The library's ReadMe says that we can create ShareIt like apps with this library, But there are no documentation about "How to Share Files" How to communicate with connected devices?

How to share file or a string to the connected device.

aboozaid commented 5 years ago

The library helps you to communicate with your mobile's hotspot in order to open it and change its configurations after that you can use @react-native-tcp to open a socket with a returned IP from the lib.

peckyboy commented 5 years ago

I was also hoping to get a description on how to go about it. Very dissapointing.

tangtai commented 5 years ago

Is this still possible to change the wifi / hotspot settings in android. I try to create wifi hot spot using android java code, i wasn't able to do it because the permission restrictions, since some of the permissions required are only for system apps, the API for "setwifiapenabled" is not public api and google changed it for new build API level. what did you used to build this library?

aboozaid commented 5 years ago

@tangtai you can use android reflection.