-
Notifications
You must be signed in to change notification settings - Fork 128
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
BREAKING CHANGE: Use WifiUtils to connect with a wifi network #46
BREAKING CHANGE: Use WifiUtils to connect with a wifi network #46
Conversation
…m/ThanosFisherman/WifiUtils/releases/tag/WifiUtils1.5.0) to support Android Q as the current implementation does not work on all android 10 devices. This library also contains several bugs for device-specific issues and only resolves 💖 when the wifi network is actually connected!
…h-semantics # Conflicts: # README.md # android/src/main/java/com/reactlibrary/rnwifi/RNWifiModule.java
It is true that the android 10 support from WifiUtils is still early. We have tested this on multiple android devices and when we can improve, we will contribute to WifiUtils and react-native-wifi-reborn. |
As mentioned here (#28 (comment)), right now, you can connect to open WiFi networks passing |
@JuanSeBestia, why would this be a BREAKING CHANGE? |
Because this is a hefty change regardign connecting on Android. For one, it uses new code for pre android 10 and starting 10 it's also completely different in it's way, that only the current app can use the wifi network. |
@eliaslecomte, for semantic-release compatibility, could you add to your initial post body something along the lines of:
following the AngularJS Git Commit Convention? |
@eliaslecomte, should we wait for @JuanSeBestia opinion? |
I do think @JuanSeBestia should approve :-). |
We want to clarify changing the versión in the readme if someone need the previous version, wich versión would need to install In the nutshell, I will allow marge this MR :) |
🎉 This PR is included in version 3.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Starting Android 10, it's no longer possible to connect (as an app) to wifi networks like before.
What can an app still do:
Temporary connect to a wifi access point (for example to setup an IoT device)
Suggest a network, but the OS can choose what to do with it.
With this PR, i've switched the connection logic to use WifiUtils which just released support for option 1.
Advantages of using WifiUtils:
Works well on different android versions
Only resolves when the app is connected to the network
Has a good retry mechanism built in
Well written code