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] Improve documentation to indicate that iOS is not supported #343

Open
FelderCamille opened this issue Aug 27, 2023 · 5 comments

Comments

@FelderCamille
Copy link

FelderCamille commented Aug 27, 2023

In the README.md file and on pub.dev, it is indicated that iOS is supported. According on my current test and on the reading that I juste made on some issues, iOS is in fact NOT supported.

Please update the documentation of the package to avoid confusions.

@FelderCamille FelderCamille changed the title Improve documentation to indicate that iOS is not supported [wifi_scan] Improve documentation to indicate that iOS is not supported Aug 27, 2023
@Jay-57blocks
Copy link

@FelderCamille I also found this problem, have you solved it?

@FelderCamille
Copy link
Author

@FelderCamille I also found this problem, have you solved it?

Unfortunately, no. I didn't use this package for scanning with iOS devices. To do so, in my scanning method, I simply check if it is possible to scan using the method canGetScannedResult() like this:

Future<StreamSubscription?> listenWifiAccessPoints() async {
    final canScan = await WifiScan.instance.canGetScannedResults(askPermissions: true);
    switch(canScan) {
      case CanGetScannedResults.yes:
        // TODO: scan for devices here
       break;
      default: break;
    }
    return null;
  }

It is also possible to check if the device is a iOS with Platform.isIOS instead of using the canGetScannedResult() method.

I haven't found another library that allows scanning with iOS. If you find one, I'd like to know about it!

@Jay-57blocks
Copy link

Jay-57blocks commented Oct 31, 2023

@FelderCamille I also found this problem, have you solved it?

Unfortunately, no. I didn't use this package for scanning with iOS devices. To do so, in my scanning method, I simply check if it is possible to scan using the method canGetScannedResult() like this:

Future<StreamSubscription?> listenWifiAccessPoints() async {
    final canScan = await WifiScan.instance.canGetScannedResults(askPermissions: true);
    switch(canScan) {
      case CanGetScannedResults.yes:
        // TODO: scan for devices here
       break;
      default: break;
    }
    return null;
  }

It is also possible to check if the device is a iOS with Platform.isIOS instead of using the canGetScannedResult() method.

I haven't found another library that allows scanning with iOS. If you find one, I'd like to know about it!

This might be possible with NetworkExtension (available since iOS 8). But you need the com.apple.developer.networking.HotspotHelper-entitlement in you app to use these APIs. To get these entitlement, you have to contact Apple and describe, why you need it.

But according to the information I found, Apple believes that small companies using LOT devices do not need to scan WIFI, so it is more difficult to pass the review.

Currently, on iOS, you can only read the currently connected WIFI SSID, while Android can scan the nearby WIFI list. Do you agree with me? Or if you have more ideas, you can leave comment

https://stackoverflow.com/questions/40681984/ios-get-list-of-all-wifi-networks/40683210#40683210

@daadu
Copy link
Member

daadu commented Jan 5, 2024

Seems, like this is confusing to a lot of users.

Seems, like we need to remove the "check mark" in the readme, and give an explanation why pub.dev shows the "ios" tag.

Feel free to file PR for this.

@selcuksenel
Copy link

This plugin also took up my time due to misinformation in the readme. Why don't you fix this? I wanted to get a list of surrounding wifi networks. But I saw that this is not possible on iOS. There is no iOS support, this is a misconception.

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

4 participants