Comments (2)
@sushanthNiveus Hi! You should call getConnectionInfo
only after connection establishing. In other case you will get native error. I can add check for this case and reject promise or return null
. But it does not solve the situation. I would like to recommend you to try at first establish connection via Setting->WiFi->Advance Settings->Wi-Fi Direct. And see result. If your device will see each other, then try again find each other via application with this library.
from react-native-wifi-p2p.
@sushanthNiveus But you're right. Calling this method shouldn't break application. So I've edited seeral lines of code and published it to npm
(0.6.5
version). You can check it and write here, if you have any questions or this error appears again :)
from react-native-wifi-p2p.
Related Issues (20)
- DeviceEventEmitter.removeListener is deprecated HOT 1
- transmit an image from a camera HOT 1
- Set Group Owner operating frequency band HOT 1
- Is there a way to get device Address with ipv4 format ? HOT 2
- Example code is not working HOT 15
- unsubscribeFromPeersUpdates : EventEmitter.removeListener() : Method has been deprecated HOT 5
- Adding something like broadcastTo(message, addresses, promise) HOT 14
- 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
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.