sushichop / cordova-plugin-wifi-manager Goto Github PK
View Code? Open in Web Editor NEWWi-Fi Manager Plugin for Apache Cordova
License: MIT License
Wi-Fi Manager Plugin for Apache Cordova
License: MIT License
I open my app without internet connection (no wifi, no cellular connection). Then I connect via this plugin to a wifi stick with a sim card inside which is online but the wifi icon shows an "!" and I don't have internet connection.
Same error if I have a wifi connection with internet access to my home wifi, then open the app and connect via plugin to my wifi stick.
If I connect manually (without the plugin) everything works fine.
It also works fine if I am online via cellular connection on my phone, open the app and connect via plugin to the stick. But if I lose wifi connection and the phone connects automatically to cellular and/or home-wifi the app things I am offline while other apps have internet connection. If I close my app and open it again i am online.
Has anybody the same problem? Is it a bug or may I have to add/change a configuration?
window.wifiManager.connect(
"login",
"pass",
() => {
window.alert('connect method was successfully called.')
},
(result:any) => {
window.alert('connect method failed to be called.'+ result.code+result.message);
}
)
android 12
tested on two different access points
connects but can't get ip from access point
Hi, the idea of this plugin is - among others - to setup IOT devices. Connect to 'private' SSID,set WIFI and other parameters and then connect back to normal internet
Here is what I do:
After startup app connected to internet
window.wifiManager.connect('ABC', 'XXX, () => { ...}
do whatever is needed
window.wifiManager.disconnect('ABC', () => { ...}
(1) Now I would assume that the app connects back to Internet using 3G or WiFI. However, connection remains disconnected
(2) When I to window.wifiManager.connect('myoldWIFI', 'XXX, () => { ...} it does not work either and all Internet connections fail. Beside this the dialog report "temporary Internet" which is certainly wrong
Which of the two ways is the correct one? How can the app get back to normal Internet after disconnect from temporary WIFI ?
Thanks a lot for any hint on that.
Chris
My use-case is connecting to a ESP32 AP and flashing firmware OTA. So the AP I'm connecting to does not provide internet connectivity.
This example android code includes this line:
.removeCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET)
Would that be helpful for some devices to maintain their primary internet connection (i.e. cellular data) while connected to the ESP32?
Can we have that as an option through this plugin?
Unrelated question: my ESP32's AP often becomes unstable during FW upgrade, is there a way to be notified or query when the WiFi connection is broken so I can try to connect again?
I connect from my mobile device to a wifi gateway without internet access. The wifi gateway is also connected to a raspberry pi and I can send data between my app and the raspberyy pi successfully. But after a while my mobile device or my app is getting disonnecting and I have to reconnect. In my case it is only an android issue.
I have tested it on two devices. It seems that newer Android versions have this problem more often than older versions - Samsung M20 with Android 10 rarely loses the connection, but Google Pixel 5 with Android 12 has lost it often and with Android 13 it is even more frequent!
At first I must say thank you for this plugin .
I have same problem like @Maho38 , When plugin connect to Wifi network ; this seems phone did not connection with network and they couldn't even access other clients .
But when connect manually , it is totally fine.
Thank you.
Hi,
i tested on my samsung tab s6 lite with android 10, the plugin return onUnavailable , not connect to wifi.
i'm here for any possible test
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.