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

iOS scan "Not supported" #6

Closed
kaichancoder opened this issue Jan 19, 2018 · 14 comments
Closed

iOS scan "Not supported" #6

kaichancoder opened this issue Jan 19, 2018 · 14 comments
Labels
help wanted Extra attention is needed iOS Dev's Needed Looking for help from any available iOS Devs iOS needs testing

Comments

@kaichancoder
Copy link

WifiWizard2.scan([], function(success) { console.log('success', success); }, function(error) { console.log('error', error); });

I'm getting: error – "Not supported"

Do I need permission as in:
https://developer.apple.com/library/content/qa/qa1942/_index.html
"NEHotspotHelper requires that your app have special entitlements."

@tripflex
Copy link
Owner

TBH i'm not sure I haven't had a chance to test out the iOS stuff, but IIRC I only think connect and disconnect work for iOS, i will be testing here in the next week or so and will be able to comment for sure on this

@kaichancoder
Copy link
Author

Ok great thanks, be good to know if you get any further.

@larryluu
Copy link

I think I have the same mistake.

Do not get to wifi scan on iOS.

My Problem is that startScan give status okay but getScanResult give an empty alert,

@captainreptile
Copy link

I'm considering implementing this, but biggest concern is IOS Scan, connect/Disconnect capabilities.
Are this working?

@kaichancoder
Copy link
Author

iOS Scan isn't available on iOS, I confirmed that directly from apple, connect works.

@tripflex
Copy link
Owner

Sorry guys I haven't had a chance to do any testing on iOS devices as the only one I have available is my girl's phone .. and of course she's not going to let me have it for the entire day 😛

Does anybody have an iPhone they would be willing to do some testing on?

@captainreptile
Copy link

@tripflex
The scan doesnt work, at least not in this module - the easiest way for IOS case is to link to the native wifi scanner from the APP..

Apple does seem to offer an option to do wifi scan from the app, but the requirements are pretty high (check for how to apply for MFi program)

Connect / disconnect does work on IOS.

@tripflex
Copy link
Owner

@captainreptile thank you for the response and letting me know, i'll see if i can find any more information or some other people to maybe help us out on this ... if any of you know any iOS devs, please feel free to invite them to help us out 👍

@tripflex tripflex added iOS Dev's Needed Looking for help from any available iOS Devs help wanted Extra attention is needed labels Apr 12, 2018
@brassier
Copy link

I also got errors when scanning on iOS. I tried to use iOSConnectNetwork() and it seemed to return without actually connecting. No error or anything. Has anyone else seen that?

@arsenal942
Copy link
Collaborator

arsenal942 commented May 25, 2018

@brassier That's because I never wrapped it in a completionHandler. It is something I am working on in https://github.com/arsenal942/Cordova-Network-Manager which once complete, I will issue a PR so @tripflex can have it in here.

ALSO: You can't perform a WiFi scan with iOS. Please for the 1000000th time, read the documentation I have provided on the iOS section.

@brassier
Copy link

@arsenal942 - sorry for the frustration. The docs have scan() as a global function which I assume indicates it is supposed to work on Android and iOS. If scan() will never work for iOS, it may be good to put it under the Android Functions section.

Looking forward to the completionHandler update for iOS connecting.

@tripflex
Copy link
Owner

@brassier @arsenal942 that's my fault when adding everything to the readme, since I do not use iOS it must have just been oversight, i'll update the readme

@luisAzcuaga
Copy link

Any update on this feature?

@bizr
Copy link

bizr commented Mar 14, 2019

@luisAzcuaga 10 years iOS, WiFi scan API was never available, it's a security feature of iOS, it will never change. The only way to achieve this is by Jailbreak.

ViggoChavine pushed a commit to Effera/WifiWizard2 that referenced this issue Oct 21, 2020
Error Handling Success Connection Loop bug
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed iOS Dev's Needed Looking for help from any available iOS Devs iOS needs testing
Projects
None yet
Development

No branches or pull requests

8 participants