-
Notifications
You must be signed in to change notification settings - Fork 127
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
fix: Verify connection after enabling network #31
fix: Verify connection after enabling network #31
Conversation
How can I test it? |
@JuanSeBestia
|
Nice work @Rapsssito but I was thinking we should leverage the work to https://github.com/ThanosFisherman/WifiUtils instead of doing everything native here. This lib already solved all those issues and is also ready for Android 10 (once my PR is merged; ThanosFisherman/WifiUtils#46). |
@eliaslecomte, I agree with using an external dependency for the Android part. |
Yes indeed definitely should! |
Testing... |
In my Xoami not work properly... but not this functionality, all connect not work. I will trust |
## [2.3.2](v2.3.1...v2.3.2) (2020-01-21) ### Bug Fixes * **android:** Verify connection after enabling network ([#31](#31)) ([9fa86ee](9fa86ee))
🎉 This PR is included in version 2.3.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Bug
Android
There was an issue when connecting to an already failed connection where
enableNetwork()
returned alwaystrue
because of its non-blocking nature.iOS
There was an issue where
NEHotspotConfigurationManager
returned no error if the device could connect to another SSID quickly enough. (#23)Solution
Android
Implemented a
BroadcastReceiver
to verify that connection has been successfully established.iOS
Implemented a check for the current SSID after
NEHotspotConfigurationManager
returns. (Fixes: #23).