Giter Club home page Giter Club logo

Comments (10)

kirillzyusko avatar kirillzyusko commented on July 26, 2024

@Suyashbajpai27 do you see any error in logcat output? Maybe there will be a useful hints what exactly blocks peers from being discovered?

from react-native-wifi-p2p.

Suyashbajpai27 avatar Suyashbajpai27 commented on July 26, 2024

from react-native-wifi-p2p.

kirillzyusko avatar kirillzyusko commented on July 26, 2024

@Suyashbajpai27 you can spin up a logcat instance by adb logcat command or simply open it in Android Studio 🙂 And check your logs (it should contain all logs).

I'm more than sure that Android will log a root cause of why discovery fails. Feel free to try 🙌

from react-native-wifi-p2p.

Suyashbajpai27 avatar Suyashbajpai27 commented on July 26, 2024

No , I didn't get any unusual logs in adb logcat in android studio.

from react-native-wifi-p2p.

kirillzyusko avatar kirillzyusko commented on July 26, 2024

@Suyashbajpai27 can you share them here? (Just for 5-10 seconds, when you started to discover peers and got a particular status)

from react-native-wifi-p2p.

Suyashbajpai27 avatar Suyashbajpai27 commented on July 26, 2024

AdbLogcat.txt
this is too long that is why i send this in txt format

from react-native-wifi-p2p.

Suyashbajpai27 avatar Suyashbajpai27 commented on July 26, 2024

Hey! this library is working in Android version 11 or 12 or older version of android but not in 13.check the issue please.

from react-native-wifi-p2p.

kirillzyusko avatar kirillzyusko commented on July 26, 2024

@Suyashbajpai27 according to yours logs I see that device actually can be found:

03-16 01:51:59.634  5539  5539 W unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["WIFI_P2P:PEERS_UPDATED",\{"devices":[\{"status":3,"primaryDeviceType":"10-0050F204-5","isGroupOwner":false,"secondaryDeviceType":null,"deviceAddress":"f2:7c:3f:99:35:60","deviceName":"realme 8s 5G"\}]\}])\
03-16 01:51:59.648  5539 11072 I ReactNativeJS: 'OnPeersUpdated', [ \{ status: 3,\
03-16 01:51:59.648  5539 11072 I ReactNativeJS:     primaryDeviceType: '10-0050F204-5',\
03-16 01:51:59.648  5539 11072 I ReactNativeJS:     isGroupOwner: false,\
03-16 01:51:59.648  5539 11072 I ReactNativeJS:     secondaryDeviceType: null,\
03-16 01:51:59.648  5539 11072 I ReactNativeJS:     deviceAddress: 'f2:7c:3f:99:35:60',\
03-16 01:51:59.648  5539 11072 I ReactNativeJS:     deviceName: 'realme 8s 5G' \} ]\
03-16 01:51:59.689   949  1055 E Light   : AmbienteLight: 116.000000\
03-16 01:51:59.694  5539 11072 I ReactNativeJS: 'Devicesssss', [ \{ status: 3,\
03-16 01:51:59.694  5539 11072 I ReactNativeJS:     primaryDeviceType: '10-0050F204-5',\
03-16 01:51:59.694  5539 11072 I ReactNativeJS:     isGroupOwner: false,\
03-16 01:51:59.694  5539 11072 I ReactNativeJS:     secondaryDeviceType: null,\
03-16 01:51:59.694  5539 11072 I ReactNativeJS:     deviceAddress: 'f2:7c:3f:99:35:60',\
03-16 01:51:59.694  5539 11072 I ReactNativeJS:     deviceName: 'realme 8s 5G' \} ]\

Regarding Android 13 - have you seen this thread/comment #59 (comment)?

from react-native-wifi-p2p.

Suyashbajpai27 avatar Suyashbajpai27 commented on July 26, 2024

I know but it is in debug mode that is why i am able to send you the logcat and i found this issue is from version,like when i am trying to run the app in android version 11 or lower then it is working but it is not working in upgraded version(more than Android 11).

from react-native-wifi-p2p.

kirillzyusko avatar kirillzyusko commented on July 26, 2024

I know but it is in debug mode that is why i am able to send you the logcat

logcat should work on both debug and release builds.

Do I correctly understand, that you opened an issue that it doesn't work in release mode and when I asked you to share adb-logs, then you shared them for debug build?..

from react-native-wifi-p2p.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.