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 API 30+ restrictions and peer discovery #23

Open
Revertron opened this issue Oct 29, 2022 · 5 comments
Open

Android API 30+ restrictions and peer discovery #23

Revertron opened this issue Oct 29, 2022 · 5 comments

Comments

@Revertron
Copy link
Collaborator

This app has build API 29 set, but it is "deprecated" from Google's view, and it will not accept such apps to Google Play.
Moreover, there are a bunch of dependencies, that are too old, but also need the API increments to update.

I've tested such "drastic" measures. The app works normally, but local peer discovery doesn't work, because Go code can't find local IPs.

See the same issue in Syncthing: syncthing/syncthing-android#1628

I think, that we can add one method to yggdrasil-go API, some method, say update_interfaces() that will get a map or JSON with interface names and an array of their IPs.

Then I can add the Kotlin code that will listen for network changes and update those IPs on the Go side.

P.S.: This function is getting empty map:
https://github.com/yggdrasil-network/yggdrasil-go/blob/cfa293d189fae9af9c025bf40a19e9ac69f8f839/src/multicast/multicast.go#L143

@flikites
Copy link

Any updates on this?

@dilinger
Copy link

Will this fix it? f4e1a75

@Revertron
Copy link
Collaborator Author

Will this fix it? f4e1a75

Nope. This can help with Android 12, and only for receiving beacons from other nodes.

I will try to implement some workaround to fix this in a couple of days.

@shibe2
Copy link

shibe2 commented Nov 9, 2023

Multicast stopped working after updating to Yggdrasil 0.5. LineageOS 18.1 Android 11.

eu.neilalexander.yggdrasil 0.1-015

Multicast works in the same application on LineageOS 17.1 Android 10.

Is this the same issue or something different?

@Ke1i
Copy link

Ke1i commented Mar 25, 2024

Multicast stopped working after updating to Yggdrasil 0.5. LineageOS 18.1 Android 11.

eu.neilalexander.yggdrasil 0.1-015

Multicast works in the same application on LineageOS 17.1 Android 10.

Is this the same issue or something different?

Same here, I can't get multicast to work on DivestOS 18.1 (Android 11) using Yggdrasil 0.1-016 from F-Droid while connected to the same Wifi network as my other machines.
The Fedora and Debian machines can see each other as from the output of sudo yggdrasilctl getpeers
No password set for multicast discovery.
All nodes are connected to the same peer and can ping each other.
It just sucks that traffic has to go through the ISP when doing anything on the Android.

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

5 participants