-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Connect to wifi without internet programmatically #36
Comments
@mknnaren I have this issue, did you resolve it somehow? |
Why connect to a networkless wifi? Isn't the device going to communicate with the remote server? Or are you going to use the local server as the master of the control device? Most people won't connect to a networkless wifi. |
@anton-christensen @13546777510 Many reasons, specifically an IoT device that needs to be setup to connect to actual wifi may create its own AP to set it up. Make sure you're using the latest version from github (how to do so is in readme), and make sure to use |
@tripflex Sounds like it is really useful. The method of using it is different for different users. |
@anton-christensen Anyhow this issue will still occur if your mobile data (4G) is on. As Android OS automatically decides if WiFi doesn't have internet then redirect all calls to the mobile data. I hope this workaround fix comes to use for your case. |
@mknnaren that's specifically what the |
@tripflex Thank you :) |
@mknnaren did you find a solution. I am struggling with the same thing. |
Prerequisites
Check all boxes if you have done the following:
Issue type
Select all that apply
Description
Cannot communicate with the IOT appliance after a successful WiFi connection via Cordova app due to non availability of internet on the appliance.
Steps to Reproduce
Expected behavior: [What you expect to happen]
Actual behavior: [What actually happens]
Reproduces how often: [What percentage of the time does it reproduce?]
All the time it can be reproduced but only on Android OS version 8.1 and 7.1.2.
Versions
Plugin version: wifiwizard2@2.1.0
Android OS version: Oreo@8.1 and Noughat@7.1.2
Please include the plugin version that you are using and also include the OS, version and device you are using.
Additional Information
If we connect to the appliance WiFi (without internet) via WiFi settings of the Android OS, the prompt shows up. But when we connect to it from Cordova app the prompt doesn't show up.
Until we click on YES on the prompt (shown in the screenshot) the OS doesn't allow any communication to go through.
I am copy pasting a link where this issue has been solved in native code layer. Could you please look at it and include a fix for this.
https://stackoverflow.com/questions/40752991/connect-to-wifi-without-internet-programmatically
Any additional information, configuration or data that might be necessary to reproduce the issue.
The text was updated successfully, but these errors were encountered: