Comments (10)
@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.
from react-native-wifi-p2p.
@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.
No , I didn't get any unusual logs in adb logcat in android studio.
from react-native-wifi-p2p.
@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.
AdbLogcat.txt
this is too long that is why i send this in txt format
from react-native-wifi-p2p.
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.
@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.
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.
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)
- Urgent: Sending File from Server to Client HOT 5
- Could not resolve all files for configuration ':react-native-wifi-p2p:classpath' HOT 7
- Android 13 rejects startDiscoveringPeers() with code 0 HOT 7
- Receive messages when the device is a mobile hotspot HOT 1
- sendMessage and receiveMessage refactoring? HOT 6
- connectionInfo is not updated when connection closes HOT 5
- SendMessageTo - can't use MAC address and we don't have ip addresses HOT 7
- sendFile and receiveFile refactoring HOT 6
- I want to make a real-time-streaming (Two Android devices connected 1:1) HOT 2
- Get Available devices not working HOT 4
- getAvailablePeers() always return empty array HOT 3
- method getAvailablePeers() always return empty device array HOT 1
- TypeError: null is not an object (evaluating 'WiFiP2PManager.init') HOT 1
- Library is not working in Android Version 12 or more upgrade version HOT 9
- Issue in Android version 13 HOT 2
- Library not working on latest android versions HOT 5
- Not working on Andriod 14 HOT 9
- Help required HOT 8
- Unable to startPearDiscovery - Android 10 HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-wifi-p2p.