-
-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example code is not working #53
Comments
Hi @ReactCoder12 |
Yes I read this but their little different permission for different android versions Can you Please explain How this App run on All Versions of Android I just need to Communicate android devices |
Iam Using Android 12.0 Version |
You need to enable GPS and ask additional permission for FINE_LOCATION. I think it should be enough. Also if something doesn't work you can check |
Thank you Now App is running Can you Please explain Little about How to use App means What we need press first create group and then what need to do and also will it need hotspot to make one device as server |
My Wifi is On But after creating Group in devices Available it gives me Empty array |
For communication you can using steps described here: https://github.com/kirillzyusko/react-native-wifi-p2p#sendmessagemessage
As far as I remember you don't need to configure wifi in any special way. Maybe you will need to connect them first time manually (using wifi direct feature in settings, though honestly I don't remember it, and I bet that it should work using only API from this library without any manual configuration). |
kirillzyusko I connect two devices with wifi direct then open App its crashing On connect button, send Message Button Why this is Crashing even if make or not make create group request |
I am using Your this Example code https://github.com/kirillzyusko/react-native-wifi-p2p-example/blob/master/App.js Please help me to solve this thats why I am not able to send message to other device |
Sorry, but I don't understand your problem. You describe it in a very generic way... What I can understand is that something doesn't work as you expect. But such info doesn't contain any information about steps you were trying to perform and logs from logcat. Let's go step by step:
P.S. regarding this:
Seems like you are trying to read info about groupOwner, but you are not a group owner 🤷♂️ |
Also you may read old/closed issues. Maybe we already solved this or a similar problem :) |
Hi kirillzyusko Thank you So mush you help me alot |
Here you mean Server side a one Mobile which create group right? |
Yes, you are right |
@kirillzyusko Does the wifi direct connection between devices only work when the app is present in both the devices? Or is it like any one of the devices can have the app and connect to another device even if doesn't have the app |
@Ankush523 honestly I don't remember - better to check it yourself 👀 |
I tried out the repo, the connection between the devices is working fine but the send message is not working. The app is getting closed when send message is being clicked. |
@Ankush523 that means that the app has crashed. Without adb logs I'll not be able to help 🤷♂️ |
@kirillzyusko can u tell me how to get the adb log while running the app in a physical device because the app doesnt worj in android studio as u mentioned |
@Ankush523 just run |
I used Example code but Its not working its not able to show devices and not able to connect with devices
Please help to run this Example I want to send string or file to other device.
Using Example of Usage
The text was updated successfully, but these errors were encountered: