Skip to content
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

Android 8 will fail when the phone is the first time(new) connect to the wifi network from the app directly. #124

Open
5 tasks
sifeng86 opened this issue May 12, 2021 · 0 comments

Comments

@sifeng86
Copy link

sifeng86 commented May 12, 2021

Prerequisites

Check all boxes if you have done the following:

Issue type

Select all that apply

  • [v] Bug
  • Enhancement
  • Task
  • Question
  • Other

Description

Android 10 can change the wifi connection from the app directly(pop up a alert box and let the user click connect).

Android 8 will fail when the phone is the first time(new) connect to the wifi network from the app directly.
But when a user connect the wifi network from wifi setting and disconnected (not new). The second time, when user connect the wifi network from app directly, it will success.

Two android 8 phone were tested.

*first time mean your phone, never connected to the wifi or you ever clicked the "forget the network" in wifi setting.

Steps to Reproduce

  1. Android 8 phone, go to wifi setting and forgot the target network(if connected before, make sure it is new in setting)
  2. CMD: cordova plugin add https://github.com/tripflex/WifiWizard2#master
  3. connect the phone to laptop.
  4. CMD: cordova run android
  5. using console in the chrome://inspect
  6. in the console tab: CMD: WifiWizard2.connect('abc', true, false, 'WPA');
  7. return promises -> time out or return "ERROR_UPDATING_NETWORK".
  8. the android 8 phone not changing the the wifi.

Expected behavior: [What you expect to happen]

Can connect to a target wifi from app directly.

Actual behavior: [What actually happens]

Failed to change the wifi from app directly if the wifi network is new to the phone

Reproduces how often: [What percentage of the time does it reproduce?]

100%

Versions

latest version from github master branch.
Android 8 : Asus Zenfone 4 and LG Nexus 5

Additional Information

Any additional information, configuration or data that might be necessary to reproduce the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant