Comments (6)
You can actually remove it first yourself by calling isRemoveWifiNetwork(ssid) but there is one problem with this you can't fix; if the wifi network configuration was created by the user or by another app, your own app can't remove it.
from react-native-wifi-reborn.
@eliaslecomte Thanks for your solution. Yes, in my situation, I can not guarantee to remove the Wifi because maybe the user created the WIFI configuration. But in this situation, call wifiManager.updateNetwork() also will fail, right? In this situation, should we reject the promise by throw an exception to indicate the existed Wifi configuration is not the same as we passed in?
from react-native-wifi-reborn.
If this PR: #46 is accepted and a new version is published, this condition will actually be checked. (try to remove or if that fails, try to connect with saved connection). Also the promise will actually be rejected if it couldn't connect in this case.
from react-native-wifi-reborn.
@ljbatwh, thanks for the feedback! I am closing this issue since #46 was merged.
If the problem persists, feel free to reopen this issue.
from react-native-wifi-reborn.
hey @Rapsssito @eliaslecomte
connectToProtectedSSID does not work if password changes, is there any way to connect with the network other than going to wifi setting, forget the network and then connect.
from react-native-wifi-reborn.
Yes unfortunately this is how Android is. The app can't change a wifi configuration that the user or another app created. I am curious, since, starting Android 10, the network configuration isn't persisted in Wifi Settings, if this is also still a problem.
from react-native-wifi-reborn.
Related Issues (20)
- WifiManager.connectToProtectedSSID got 4 arguments , expected 6 HOT 1
- WifiManager.connectToProtectedSSID got 7 arguments , expected 6 HOT 1
- `WifiManager.getCurrentWifiSSID()` never fulfilled HOT 5
- Why is it necessary to specify a Node version? HOT 9
- Android 13 local Websocket HOT 4
- javax.xml.bind.UnmarshalException HOT 1
- IOS 17. Cannot read property 'connectToProtectedSSID' of null HOT 5
- This project is maintained ? HOT 2
- starting IOS 17 connectToSSID opens a webportal/captive Portal HOT 5
- android build issue from recent package update HOT 11
- 4.10.0 doesn't build HOT 3
- Reconnecting to original Wifi HOT 1
- npm ERR! engine Unsupported engine HOT 2
- Can't find a method to connect via BSSID HOT 1
- iot device's http server is not accessible on release build HOT 1
- connectionStatus() is returning 'false' when the Wi-Fi is connected. HOT 2
- Failed to build the app: No package name found. HOT 2
- Multiple commands produce libRNWifi.a HOT 1
- Import only works with path HOT 1
- Android 13 - Not returning correct error when password was wrong 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-reborn.