Get Wifi List to connect Wifi Bridge to internet via React Native App

I'm working on a React Native (IOS) app which has a feature to scan the available network list and pass the network ID with valid credentials to connect a wifi bridge with network. Why do I need to scan the wifi network list:

  • the app will be communicating with a Custom Wifi Bridge whose role is to just transfer the API calls, since our app is hardware oriented, we have a bluetooth enabled hygrometer involved, so in order to connect the wifi bridge with a wifi source we need to have a way to first scan and then connect to it.

Can you help me out with this, since I can't find any relevant help.

Thanks.

I firmly believe that is impossible with vanilla API provided by Apple. 😞

iOS has no general-purpose API for getting Wi-Fi scan results. For info on the APIs that are available, see TN3111 iOS Wi-Fi API overview.


MobileTen wrote:

And sample code here (entitlement to use services is required from Apple)

That sample code uses NEHotspotConfigurationManager, which you can use without any special approvals. You may be confusing this API with NEHotspotHelper, which does. However, NEHotspotHelper won’t help with a Wi-Fi based accessory. To quote TN3111:

NEHotspotHelper is only useful for hotspot integration. There are both technical and business restrictions that prevent it from being used for other tasks, such as accessory integration …

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

thanks for the update

Get Wifi List to connect Wifi Bridge to internet via React Native App
 
 
Q