wifi_connector_plus 0.0.5
wifi_connector_plus: ^0.0.5 copied to clipboard
A Flutter plugin to scan Wi-Fi QR codes, parse configurations, and connect to Wi-Fi networks on Android and iOS.
0.0.5 #
- Removed the
languageproperty fromWifiQrScannerViewand deleted theWifiScannerLanguagemodel, defaulting all warning and error messages to English. - Added
ssidStreamAPI to listen for Wi-Fi SSID updates.- On iOS, uses
NWPathMonitorto detect path changes and fetch the active SSID. - Added
wifi_connector_plus/ssid_streamevent channel.
- On iOS, uses
- Improved iOS connection request reliability:
- Verifies the actual active SSID (via polling for up to 10 seconds) after
NEHotspotConfigurationManager.apply()succeeds, preventing false success states on wrong credentials or out-of-range networks. - Returns
"ALREADY_CONNECTED"if the target network is already active. - Changed internal platform channel
connectreturn type frombooltodynamicto support detailed status responses.
- Verifies the actual active SSID (via polling for up to 10 seconds) after
- Optimized
example/lib/main.dartUI:- Streamlined UI layout with clear instructions.
- Replaced manual and QR connection logic with a unified helper.
- Subscribed to
ssidStreamto display the active SSID in real-time.
- Added
com.apple.developer.networking.wifi-infoentitlement to iOS for retrieving SSIDs on iOS 14+.
0.0.4 #
- Added
getCurrentSsid()API to retrieve the currently connected Wi-Fi network's SSID on Android and iOS. - Improved connection validation by checking the active SSID post-connection to prevent false success states when connection fails.
- Added multi-language support (English and Turkish) to
WifiQrScannerViewviaWifiScannerLanguage. - Added customizable camera controls (toggle flashlight, switch camera direction) to
WifiQrScannerView. - Upgraded
permission_handlerdependency to^12.0.3. - Upgraded Qr Scanner Camera view for better performance and user experience.
- Fixed
WifiQrScannerViewto resume camera scanning when connection fails, and verified scanner controller disposal on unmounting.
0.0.3 #
- Updated dependencies:
- Upgraded
permission_handlerto^11.4.0. - Upgraded
plugin_platform_interfaceto^2.1.8.
- Upgraded
- Refactored the example app to remove redundant location permission checking logic, utilizing the plugin's internal check and request flow.
0.0.2 #
Android #
- Implemented system-wide Wi-Fi connection flow on Android 10+ using
WifiNetworkSuggestionandActivityResultListener, replacing the app-scopedWifiNetworkSpecifierapproach. - Fixed incorrect
WifiNetworkSuggestionsuccess status constant that prevented detecting successful connections. - Added mandatory runtime location permission check and request APIs:
isLocationPermissionGranted()andrequestLocationPermission(). - Added automatic pre-connection permission check inside the
connect()API. - Added
ACCESS_FINE_LOCATIONto the Android manifest for Wi-Fi scanning on Android 9+. - Added consumer Proguard rules for ML Kit and
mobile_scannerto prevent release-build crashes caused by R8/Proguard obfuscation. - Upgraded
mobile_scannerdependency to7.2.0.
Dart / Core #
- Improved
WifiQrParserrobustness: case-insensitive security type normalization, trimmed whitespace from parsed fields, and added support formobile_scannerstructured barcode data. - Updated
WifiQrScannerViewto surface the raw QR string alongside parsedWifiCredentialsvia theonQrScannedcallback. - Fixed
WifiQrScannerViewcrash caused by unhandledCameraFacing.external/CameraFacing.unknownenum values during camera initialization.
Documentation #
- Added
THIRD_PARTY_NOTICES.mdwith license attributions forpermission_handlerandmobile_scanner. - Updated
README.mdwith pub.dev badges, platform support table, and collapsible Android/iOS setup guides. - Fixed mockup image in
README.mdto use an absolute repository URL so it renders correctly on pub.dev. - Applied
dart formatacross all library and example source files.
0.0.1 #
- Initial release of
wifi_connector_plus. - Support for manual Wi-Fi connections (WPA, WPA2, WPA3, WEP, or Open/None).
- Standalone
WifiQrParserto parse industry-standard Wi-Fi QR configurations (WIFI:S:MyNetwork;T:WPA;P:SecretPassword;;). - Pre-built
WifiQrScannerViewwidget for camera-based scanning and automatic connection parsing. - Native Android integration using
WifiNetworkSpecifier/WifiNetworkSuggestionon Android 10+ and legacy API fallback. - Native iOS integration using
NEHotspotConfigurationManager. - Android Location Permissions Support:
- Implemented runtime check and request APIs for location permission:
isLocationPermissionGranted()andrequestLocationPermission(). - Added automatic pre-connection permission checks inside the
connect()API for Android. - Configured location permission requesting at application startup in the example project.
- Implemented runtime check and request APIs for location permission: