Overview:
The react-native-android-wifi module is designed for viewing and connecting to Wifi networks on Android devices. It provides various functionalities related to wifi connectivity such as enabling/disabling wifi service, connecting to a specific network, getting current network information, and managing wifi networks.
Features:
- Permissions: Obtain necessary permissions for accessing wifi functionalities.
- Wifi connectivity status: Check if wifi is enabled or disabled on the device.
- Connect to specific network: Ability to sign device into a specified wifi network.
- WPA2 PSK support: Added support for ‘WPA2 PSK’ wifi security mode for specific Android versions.
- Network information: Retrieve information such as SSID, BSSID, IP address, DHCP server address.
- Get available networks: Obtain a list of wifi networks in range.
- Connection status: Check if the device is currently connected to a wifi network.
- Force wifi usage: Method to force wifi usage for network requests.
Installation:
To install the react-native-android-wifi module in your Android project, follow these steps:
- Add the module to your Android project.
- Install the native dependencies.
- Use
react-native linkto automatically install the native dependencies or follow manual installation instructions provided.
Summary:
The react-native-android-wifi module offers a comprehensive set of features for managing wifi connectivity on Android devices. From handling permissions to connecting to specific networks, retrieving network information, and forcing wifi usage, this module provides developers with the necessary tools to work with wifi functionalities in a react-native environment.