Comments (6)
This is because in newer version of android (which should be majority unless running really old devices), you can not update, remove, or disable networks that were not created/setup by your application.
See here:
https://github.com/tripflex/WifiWizard2/tree/3.0.0#android-permissions-and-notes
I'm curious though ... in what kind of use case scenario would you not want to connect to wifi network ... especially if it already has the correct password in the phone?
from wifiwizard2.
thanks
I have an app that should send an ESP8266 device the name of the SSID and its correct password. For this I have two text fields one for the ssid and another for the password,
In order to check that the data has been correctly entered I connect to the internet, but if the password is wrong, it also connects since the correct password is stored somewhere.
I sent the data to the ssid of the text fields and if the password is bad, I sent it wrong.
from wifiwizard2.
@tripflex IOT based devices in which you are only wanting a one-time connection to be established are reasons why. It is why I had the weird disable/remove network stuff in my plugin.
from wifiwizard2.
@arsenal942 what are your thoughts regrading this then? For my iot stuff I have it handled by the device itself, esp8266 and esp32, and just make an RPC call to the device to see if it connected to the internet or not.
I guess we could add a helper method that just tests creds, connects and returns promise is successful, reject if not, and remove after connecting?
from wifiwizard2.
@Hippoi I am currently facing a similar scenario in which I want to send WiFi credentials to an IoT device.
I think the verification of credentials (resp. the overall check whether a connection could be established or not) should be done on device side. Besides wrong credentials, there are other factors that could prevent a successful connection (e.g. if the WiFi has been set up as 5 GHz but the IoT device supports 2.4 GHz only).
Pre-checking the credentials on client-side might result in multiple points of failure. I would therefore recommend to test the connection on device side and return an appropriate status code.
from wifiwizard2.
@xLarry yes I agree, that's actually why I wrote this library for Mongoose OS to handle this specific situation as you are completely right, there's so many other factors that could come into play
https://github.com/tripflex/wifi-captive-portal
from wifiwizard2.
Related Issues (20)
- wifiWizard2.scan() returns error "Uncaught (in promise) SCAN_FAILED" HOT 3
- Is WifiWizard2 still maintained? HOT 6
- Android 10 ( 29 ) is not supported - Connect to network, enable, disable and more.. HOT 45
- Empty Array in com.apple.developer.networking.networkextension prevents Apple Upload HOT 8
- I have a working version running on Android 10. I modified it by forking https://github.com/ViggoChavine/WifiWizard2 who already started work for API 29 and i added on top of it for my app feel free to use as a base or as is: https://github.com/VijayVaveHealth/WifiWizard2/.
- Android - SDK android-targetSdkVersion <= 28 HOT 20
- Consulting for this package? HOT 3
- Android 8 will fail when the phone is the first time(new) connect to the wifi network from the app directly.
- Android 10: online/offline problems via wifi plugin HOT 1
- when will the new version that support android 10 be released? HOT 1
- Version 3.3.0 for Android 10+ HOT 13
- Read saved wifi password
- Error: Plugin WifiWizard2 does not respond to method call add. Ensure plugin method exists and uses @objc in its declaration HOT 2
- ERROR_SETWIFIENABLED HOT 1
- Receive `null` from iOSConnectNetwork() when Cellular is enabled and Network is Saved HOT 2
- Unable to install the latest version of WifiWizard2 [Version 3.3.0] in Ionic Project
- Wifi with No Internet Disconnect after some time HOT 1
- internet access outside app
- How i connect to WIFI that requires username and passwoord?
- IOS 16 not get automatically SSID also not show subnet address and ipaddress
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 wifiwizard2.