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

getScanResults not supported on iOS ? #104

Open
SimonTod opened this issue Feb 23, 2017 · 6 comments
Open

getScanResults not supported on iOS ? #104

SimonTod opened this issue Feb 23, 2017 · 6 comments

Comments

@SimonTod
Copy link

Here is my code:

WifiWizard.startScan(function() {
    WifiWizard.getScanResults({}, function(s) {
        // some code
    }, function(e) {console.log("getScanResults error: "+e)});
}, function(e) {console.log("startScan error: "+e)})

This works fine on Android, but on iOS I am getting this message from the startScan error callback:

startScan error: Not supported

I am using the WifiWizard 0.2.11 version installed from the next command line:

cordova plugin add wifiwizard --save

this adds the following line in my config.xml file:

<plugin name="com.pylonproducts.wifiwizard" spec="~0.2.11" />

Is my way of doing it the problem or is this just not compatible at all with iOS devices ?

@SimonTod
Copy link
Author

I am thinking that this might need some new line(s) in the -Info.plist file

@a432511
Copy link

a432511 commented Mar 2, 2017

The readme says, "The only function availabe for iOS is getCurrentSSID."

@theavijitsarkar
Copy link

This was working before

@knro
Copy link

knro commented Mar 25, 2017

Is this repo still being maintained? I see 15 open PR and lots of issues and no words from the repo owner?

@arsenal942
Copy link

This has never been available for iOS based devices. Apple do not let you utilise the inbuilt wifi functionality that WifiWizard taps into and the only thing they do let you see is what SSID you are currently connected to.

What I have done as a workaround is serve up an apple profile configuration which has the SSID and password I want to connect to in it. It baffles me that Apple let you do this with profile configurations but don't let you access the internal wifi....

@arsenal942
Copy link

For those that are also interested, d8ce10a
contains the change which breaks where the success callback is only called if the connection successfully occurred.

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

5 participants