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

Wifi scan issue while using it In IOS #340

Closed
AbdelrahmanEhab20 opened this issue Aug 9, 2023 · 2 comments
Closed

Wifi scan issue while using it In IOS #340

AbdelrahmanEhab20 opened this issue Aug 9, 2023 · 2 comments

Comments

@AbdelrahmanEhab20
Copy link

each time i tried to use it to scan and gave me the results it told me not supported , that's only in IOS , how to fix this issue and get the same results like android

@wcoder
Copy link

wcoder commented Jan 4, 2024

Because iOS is not supported under the hood, look:

public func handle(_ call: FlutterMethodCall, result: @escaping FlutterResult) {
switch(call.method){
case "canStartScan":
return result(0) // not supported
case "startScan":
return result(false) // always fails
case "canGetScannedResults":
return result(0) // not supported
case "getScannedResults":
return result([]) // empty results
default:
return result(FlutterMethodNotImplemented)
}

Ref #343 #363

@daadu
Copy link
Member

daadu commented Jan 5, 2024

Yes, ios doesn't have any public api for "wifi scanning" functionality. The plugin is implemented, so the user doesn't need to check the platform everytime, they can just rely on canStartScan() call.

@wcoder Thanks for clarifying.

Closing this issue, feel free to ask for re-opening.

@daadu daadu closed this as completed Jan 5, 2024
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

3 participants