kirillzyusko / react-native-wifi-p2p-example

7 stars 9 forks source link

I clone your Project And Build it App crash with click on Connect, send message, send file #22

Open ReactCoder12 opened 2 years ago

ReactCoder12 commented 2 years ago

I clone this project and build App. After installing App in My Mobile It crash on connect button, send Message, Send File Even I cannot able to peer 2 devices when my Direct wifi connected 2 devices I used App according to steps you mentioned.

kirillzyusko commented 2 years ago

Hi @ReactCoder12 Please, send logcat logs. Without them I can not help you.

ReactCoder12 commented 2 years ago

Connecte(App Crash) [Thu Jul 28 2022 09:32:17.800] LOG Connect to: undefined remove group [Thu Jul 28 2022 09:32:28.540] LOG Currently you don't belong to group! available devices [Thu Jul 28 2022 09:32:43.655] LOG {"devices": []} send file(App Crash) [Thu Jul 28 2022 09:32:48.673] LOG You can use the storage

If you still not understand Can you Please do a short meeting of 5 min

kirillzyusko commented 2 years ago

@ReactCoder12 you don't have available devices for connecting. So it's expected to have a crash, since you are trying to connect to undefined 🤷‍♂️

And it seems like you sent me metro logs, but to understand a root cause I need to have logcat logs.

ReactCoder12 commented 2 years ago

logcat on connect 07-28 12:04:00.325 13829 13829 D ReactNative: CatalystInstanceImpl.destroy() start 07-28 12:04:00.325 13829 13829 D ReactNative: CatalystInstanceImpl.destroyV1() start 07-28 12:04:00.670 13829 13851 D ReactNative: CatalystInstanceImpl.destroy() end

ONSend message 07-28 12:04:55.743 13829 13829 D ReactNative: CatalystInstanceImpl.destroy() start 07-28 12:04:55.743 13829 13829 D ReactNative: CatalystInstanceImpl.destroyV1() start 07-28 12:04:56.005 13829 13851 D ReactNative: CatalystInstanceImpl.destroy() end

ReactCoder12 commented 2 years ago

Even I try 2 real devices First manually establish connection between 2 devices then create group and connect press from their device App crash

ReactCoder12 commented 2 years ago

Can you Please look into this issue Exactly using your example

kirillzyusko commented 2 years ago

07-28 12:04:00.325 13829 13829 D ReactNative: CatalystInstanceImpl.destroy() start 07-28 12:04:00.325 13829 13829 D ReactNative: CatalystInstanceImpl.destroyV1() start 07-28 12:04:00.670 13829 13851 D ReactNative: CatalystInstanceImpl.destroy() end

It just tells that app has been closed. Logs should contain more information.

Can you Please look into this issue Exactly using your example

I'm afraid I can not do it, since I don't have two physical devices :pensive: