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 11 compatible? - app probably requires Multicast_Receive permission #6

Closed
Catfriend1 opened this issue Jun 7, 2021 · 3 comments

Comments

@Catfriend1
Copy link

Hi,

I'd just like to ask if you already have feedback or verified that the app still works fine on Android 11. We've recently had problems with our "local discovery by receiving multicast beacons" here at the Syncthing-Android project and I've found out that Android 11 restricts apps from sending multicast beacons. BUT: receiving multicast packets - like they also exist for Bonjour - requires a permission the apps needs to ask for and hold a so called MulticastLock first before starting to listen.

Please see my PR containing the changes I've made at Syncthing-Android to support receiving multicast on Android 11. Feel free to take any code if helpful. ( Catfriend1/syncthing-android#800 )

Thank you.

Kind regards,
Catfriend1

@wellenvogel
Copy link
Owner

Hi,
Many thanks for this hint.
Until now I did not test on Android 11 - but I will have a look...
Regards
Andreas

@wellenvogel
Copy link
Owner

Looking at the issue there is a chance that BonjourBrowser will not run into this one. At least as long as the first step of mdns service discovery still works on android ( BonjourBrowser is using the Android service).
For all stuff that I do directly inside BonjourBrowser I do not use multicast but pure UDP unicast.
But I have to test...

@wellenvogel
Copy link
Owner

Ok, after some testing - it runs without problems on Android 11 (as mentioned - I do not use Multicast in the app directly).
Anyway many thanks for pointing to the problem.

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