flutternetwork / WiFiFlutter

Flutter plugin suite for various WiFi services.
https://wifi.flutternetwork.dev
290 stars 183 forks source link

Connect always return false on IoS #406

Closed BorjaEI closed 1 month ago

BorjaEI commented 1 month ago

IoS 17.6.1

bool connected = await WiFiForIoTPlugin.connect(STA_DEFAULT_SSID, password: STA_DEFAULT_PASSWORD, joinOnce: true, security: NetworkSecurity.WPA);

This always return false, whenever network gets connected or not.

BorjaEI commented 1 month ago

networking.wifi-info entitlement is required in order to get the status correctly.

Add following tag to your Runner.entitlements file:

com.apple.developer.networking.wifi-info For connecting to WiFi, you also need entitlement networking.HotspotConfiguration. Add: com.apple.developer.networking.HotspotConfiguration