-
Notifications
You must be signed in to change notification settings - Fork 146
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 - SDK android-targetSdkVersion <= 28 #121
Comments
Please install it with NPM release is older than GitHub master repository and there isn't Android 10 support on it. |
You have one pull request for add new method for support Android 10. See it and, add it if you wanna... |
@klich3 @matteocappello94 I am using the current master version and I still get an error 'WiFi not available' on connect() |
Target Android 10, WifiWizard2 can't enable Wifi interface if it's disabled. To use it Wifi interface needs to be on. |
@matteocappello94 The Wifi interface is on. It works without any issue on targetsdk 28 but with 29 it is throwing error 'WiFi not available'. Event location access is also provided. |
@jainsuneet I'm using this version https://github.com/cloudsurfers-it/WifiWizard2/tree/plus (fork of this master with some little improvement for my work) targeting API 29 and Cordova without any problems. |
@matteocappello94 With your version I am getting below error while installing
Here is the snippet of my code to connect to the WiFi
|
@jainsuneet when you install from GitHub |
@matteocappello94 With your repo is also the same error 'WiFi not available' |
@jainsuneet with Android Studio, you can debug with breakpoints .java class and methods of WifiWizard2 to verify where error occur. |
@jainsuneet LOCATION permission is granted, but location interface is enabled? |
@matteocappello94 yes location interface is also enabled and also I cannot pass others args because the wifi is an open network. |
@jainsuneet WIFI_NOT_ENABLED returned from verifyWifiEnabled() method of WifiWizard2.java |
@matteocappello94 I am getting 'WiFi not available', I can scan for the wifi ssids and it works but the connection is failing. The not available is coming from
which is within |
@jainsuneet appear popup window when you try to connect? If you can try with a Wifi network with password using method with all args like this: |
@matteocappello94 Yes now I tried with Password as well. Still it throws the same error 'WiFi not available'. Even I am getting the popup with Wifi Network details but after that comes the error. But if I connect like this Is there any way that I can connect to an open WiFi? it will be really helpful. |
You can try connect to specify network knowing SSID and Pass. Try new method. Maybe solve your problem. |
@klich3 So I finally found the issue that why it was not able to connect to an open network. |
Thanks, now for default is set as NONE for Open networks. Others Methods are Depricated on >= Api 29 |
@klich3 With your latest commit on the dev branch I am getting lot of errors and the build is getting failed. Can you please help to resolve the issue.
|
Prerequisites
Check all boxes if you have done the following:
Issue type
Select all that apply
Description
On Android this plugin is working with android-targetSdkVersion <= 28. When compile phone gap with Api 29.
Currently for upload your app to G-Play is requiered Api version 29 and above.
The text was updated successfully, but these errors were encountered: