Skip to content
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 local Websocket #323

Closed
GaWr26 opened this issue Oct 6, 2023 · 4 comments
Closed

Android 13 local Websocket #323

GaWr26 opened this issue Oct 6, 2023 · 4 comments
Labels

Comments

@GaWr26
Copy link

GaWr26 commented Oct 6, 2023

Our app connects to our IoT device's local mqtt broker via Websocket over WiFi and the brokers IP address. We use forceWifiUsageWithOptions for this as there might be no internet on the device. This worked perfectly untill upgrading our app to Android 13 SDK Version 33. Now the local connection only works in a expo dev build, not in the release. There's no requests arriving at the broker.

Anybody aware of breaking changes that prevent a LAN connection via Websocket? Are we missing any permissions?

We're really lost at the moment and any help is highly appreciated 👍

@JuanSeBestia
Copy link
Owner

Do you know if this MR solve the problem?

#319

@notjulian
Copy link
Collaborator

Our app connects to our IoT device's local mqtt broker via Websocket over WiFi and the brokers IP address. We use forceWifiUsageWithOptions for this as there might be no internet on the device. This worked perfectly untill upgrading our app to Android 13 SDK Version 33. Now the local connection only works in a expo dev build, not in the release. There's no requests arriving at the broker.

Anybody aware of breaking changes that prevent a LAN connection via Websocket? Are we missing any permissions?

We're really lost at the moment and any help is highly appreciated 👍

do you have react_native_config.xml with domain-config cleartextTrafficPermitted="true"

@GaWr26
Copy link
Author

GaWr26 commented Nov 2, 2023

I added cleartextTrafficPermitted="true" and now it works again. Thank you very much for pointing this out!

Copy link

github-actions bot commented Dec 8, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants