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

Bonsoir Broadcast on Android Becomes Unresponsive After Idle Time. Needs Manual Wi-Fi Reset #116

Open
olerhan opened this issue Mar 23, 2025 · 1 comment

Comments

@olerhan
Copy link

olerhan commented Mar 23, 2025

I'm using Flutter to broadcast a Bonsoir service from a real Android device. The service is successfully discovered and resolved by another device (e.g., Mac or iOS), using the correct IP and port. However, when the remote device tries to connect back to the Android-hosted service, the Android device doesn't detect or respond to the incoming connection attempt at all — it's like the connection never reaches it.

Interestingly, this issue resolves immediately if I manually disable and re-enable Wi-Fi on the Android device, or simply reconnect to the same network. After that, everything works as expected.

The problem only seems to appear after the Android device has been idle or on the network for a long time — and unfortunately, I can only reproduce it roughly every 12 hours, which makes debugging very difficult.

I'm using real devices on the same local Wi-Fi network (not emulators), and everything else seems to be configured correctly. I’m also acquiring a MulticastLock and using the necessary permissions.

Also worth noting: The Android device still has internet access during this issue — I’m able to authenticate users through my remote server with no problems.

Has anyone experienced something similar or found a stable workaround for this?

@Skyost
Copy link
Owner

Skyost commented Mar 29, 2025

when the remote device tries to connect back to the Android-hosted service, the Android device doesn't detect or respond to the incoming connection attempt at all — it's like the connection never reaches it

When you say "device tries to connect back", you mean, using Bonsoir ?

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

No branches or pull requests

2 participants