Giter VIP home page Giter VIP logo

cordova-plugin-wifi-manager's People

Contributors

dependabot[bot] avatar divarela avatar emccorson avatar sushichop avatar zonemr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

cordova-plugin-wifi-manager's Issues

Android 10: online/offline problems via wifi plugin

Problem

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?

Devices connect but it does not have internet access

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

Reconnect after successful connect

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

add option to remove NetworkCapabilities.NET_CAPABILITY_INTERNET

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?

WiFi connection without internet disconnects after some time

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!

Connection problem

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.

android 10 not connect

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.