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

getCurrentSSID on android adds extra quotes on ssid return value #119

Open
predorock opened this issue Nov 3, 2017 · 1 comment
Open

Comments

@predorock
Copy link

predorock commented Nov 3, 2017

Example code:

wifi.getCurrentSSID(function (ssid) {
    if (ssid) {
         if(ssid === $ctrl.ssid) {
             // ... my stuff
         } else {
             // ... error handling
         }
    }

For example my home wifi is FASTWEB-12345, so when connected I am expecting to get in the ssid
variable the string "FASTWEB-12345", but the value is ""FASTWEB-12345"".
Note that on iOS is working correctly, this bug is affecting only the android version.

@tripflex
Copy link

tripflex commented Jan 4, 2018

Yes this is related specifically to Android as it required the SSID to be enclosed in double quotes, and is probably why it's returning it that way.... but yes would be good for actual repo to do it for you.

Check out this fork that's more recent, and i'll be pushing fixes to shortly
https://github.com/arsenal942/Cordova-Network-Manager

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

2 participants