-
Notifications
You must be signed in to change notification settings - Fork 124
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
Android 13 issue #303
Comments
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community attention? This issue may be closed if no further activity occurs. |
Probably an issue regarding the new permission workflow NEARBY_WIFI_DEVICES for Android 13+ Is this repo still active ? |
still facing lot of issues in Android 10,11,12,13 also one plus not working |
Just try react-native-tethering and let me know |
Unresolved reference: STATUS_NETWORK_SUGGESTIONS_ERROR_RESTRICTED_BY_ADMIN |
Will this library work for ios? |
currently only works for Android but I look for a someone for IOS wrapper. |
I have tried this this package but when i run pod install i am getting this error ERROR Invariant Violation: |
That's expected. it only works for Android now please if you have any other questions you can open an issue in the lib's repo itself thank you. |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community attention? This issue may be closed if no further activity occurs. |
Still issue not resolved. Wifi connection success but not connected to wifi ... |
is this repo people is in active mode ? |
Check out my lib react-native-tethering |
Experiencing the same error on my device (Google Pixel 6a) as well. I've also raised an issue on react-native-tethering addressing this identical problem. You can find it here: react-native-tethering Issue #23. |
I'm seeing the exact issue as well. |
In my case, our code drops the existing SSID and connects to a new one for passing FWIW: I have tried adding all the permissions per other comments, including NEARBY_WIFI_DEVICES, and also cleartextTrafficPermitted in the network_security_config.xml file. I've confirmed that no matter how I structure the outbound package with network or axios, it just doesn't send the http text with Android 13. No packets are ever sent or received. If you manually disconnect the original WiFi, it will send http over the new connection, even though getting the current SSID reports the new one. |
I am experiencing the same issue on Android 13:
FYI: Foreground location permission is granted |
@Audrey-Ann I also faced this issue when I used WifiManager.connectToProtectedSSID(ssid, password, false, false). |
@midhungopipk Thank you for your fast reply and explanation! Do you find a solution or a workaround for it by any chance? :( |
No I just redirected the user to the wifi settings page directly from inside the app. |
@midhungopipk I guess there's no better way :( @JuanSeBestia would you recommend any workaround or explanation on why connecting to the Wi-Fi programatically using |
@JuanSeBestia is this library still being maintained? |
Facing the same same with Pixel 7 and Android 14. But it’s strange that what worked with RN v67.5 and RNFR v4.8.3 Is this only related to Pixel Phones? p.s. @JuanSeBestia Tnx for the library!) Works great with other phones! |
I have managed to get this working, but it's a little hard to pin down the exact issue. Besides all the permissions mentioned above, if you're using the forceWifiUsageWithOptions, I found that this should only be called once before you use any connect functions. Near as I can tell, on Android13, every time you call forceWifi, it pops you back to the default network (wlan0). At least in my tests, Android 13 will create a second interface (wlan1) when you connect, then return to wlan0 if you execute the force afterwards. It's a little confusing... |
Do you know if this MR is solving the issue ? |
I would say that the library just needs some clarification in the docs over the process I described here: I'm not the guy to document this as I don't have enough understanding of the underlying reasons why it works. |
Just chiming in..... I got it to work on Android 14 by doing: Hope it helps someone. |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community attention? This issue may be closed if no further activity occurs. |
Not fixed |
Any updates please ? It doesn’t work ! I'm connected but not access to internet on Samsung S21 Android 14 |
Hi folks, someone would like to try? you can add in
or create a patch using Code example (for a hotspot without Internet), first connect, then forceWifiUsage true, before disconnect forceWiFiUsage to false
|
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community attention? This issue may be closed if no further activity occurs. |
I'm still facing this issue on Samsung S23 - Android 14 and Samsung A23 - Android 13. |
have you tried this ? |
Hi everyone, I've the same problem connecting to an ioT device via Wi-Fi with no internet access. I've tried your steps, like these but is still not working, specially nor disconnect() nor isRemoveWifiNetwork(ssid) works. The phone remain connected to my home local wifi. Anyone can help me? |
have you tried this ? I'm currently using in production, also with Android 14 |
Hi @notjulian If when I try connection to the ioT Wi-Fi I'm not connected to any other local Wi-Fi network, everything works fine. |
can you please post your package.json please? |
Hi @notjulian
|
hi @smartmedev,
|
hi @notjulian thank you, I was missing your import in my package.json. I'm stucked with this, i think that the only option remain send user to manually connect via the phone settings |
I should note that I only encountered this problem on Pixel phones. |
Hi everyone! The complete scenario of my app is as follows:
Based on suggestions made by @jayadelson on this comment. I've debugged Android on native part and I've found that on Pixel phone, if you're already connected to a WiFi with internet access (suppose my home WiFi), when you connect to a WiFi network without internet (ioT device), the phone successfully connect to ioT device WiFi but without disconnecting from home WiFi. So, when you go to the phone WiFi settings, you find that you're connected to your home WiFi and you can see your ioT device WiFi that seems disconnected, ...but you're not! This scenario should be real on every app targeting Android 12 (API 31) or higher (see here: https://developer.android.com/about/versions/12/behavior-changes-12#concurrent-connections) However, I was focusing that the problems were on this library (react-native-wifi-reborn), but in reality during debug I've found that the two concurrent network interfaces are successfully created. For everyone who is having a similar problem using these two libraries, I'm posting a PR for the library react-native-tcp-socket. |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community attention? This issue may be closed if no further activity occurs. |
# [4.13.0](v4.12.1...v4.13.0) (2024-09-17) ### Bug Fixes * add semicolon ([561ea0a](561ea0a)) * fix error argument is marked as nullable but React requires that all NSNumber arguments are nonnull ([b3f4e84](b3f4e84)) * use node 20 for semantic-release ([f516e8d](f516e8d)) ### Features * **iOS:** Add new method to connect to a SSIDPrefix protected only once, Android: Try to address issue [#303](#303) ([d98ccfc](d98ccfc))
Wifi connection success but not connected to wifi ...
mobile -Google pixel 6a
The text was updated successfully, but these errors were encountered: