deltachat-core-rust icon indicating copy to clipboard operation
deltachat-core-rust copied to clipboard

warning on WebXDC checklist app: "Delta Chat would like to find and connect to devices on your local network"

Open dkg opened this issue 1 year ago • 6 comments

A contact of mine is using the WebXDC checklist app in a chat. I don't know how to tell what version the Checklist app is, but i can try to retrieve that info if you give me pointers to how to do so.

  • iOS version: 16.1.1
  • Device: iPhone 11
  • Delta Chat version: 1.48.3

When opening the webxdc app, iOS asks the user for permission "Delta Chat would like to find and connect to devices on your local network". That's a bit surprising given what I understood were the promises about strict limits on network access for WebXDC applications.

deltachat-ios-webxdc-local-network-permissions

dkg avatar Nov 26 '24 04:11 dkg

this should not pop up for a webxdc not using realtime channels, indeed.

there were some bugs in that area, also leading to some phone warming, so maybe it is already fixed; we should try to reproduce that

r10s avatar Nov 26 '24 11:11 r10s

i just had that in desktop on macOS as well. after starting a development build from terminal, i got asked the same question. is was starting a recent version of https://codeberg.org/jagtalon/split-bill/ for that.

so, i assume, this is a core issue, something is done in core that triggers the alert, moving the issue to core for now

EDIT: happended again after update to desktop 1.52.1, this is what it looked like for me, came unexpected while delta was in background for a while with 2048.xdc open:

wondering, why that image reads "Electron" instead of "Delta Chat" - i've seen that only when using self-build - but that was the just downloaded "official" release

r10s avatar Jan 16 '25 15:01 r10s

got the same on iOS when using "Pac 1D" that is no using realtime (i ported the game myself not long ago :), here on iOS 7.

still, it is hard to reproduce as the alerts come from the OS and are not triggered by Delta Chat as other grants. the OS just decides to show the alert when an app decided to use suspicious network things (or so)

r10s avatar Jan 22 '25 13:01 r10s

otoh, i am also not sure how accurate the OS is displaying the hint.

i just happen to me that after hours of terminating "Android Studio", macOS is showing the question, totally out of context:

Screenshot 2025-02-02 at 17 45 23
note the 3rd icon on the left: Android studio is not running

also, i did not start accidentally, "Android Studio" did not start after confirming the dialog - and was also not started before, due to an error, i remember i even "Force Quit".

i totally believe, that "Android Studio" somehoe triggers the warning, eg. by adb debugging. but the timing was totally out of context

that could also explain the "Electron" name in the dialog above - for sure, i started the app before at some point

so, not sure, maybe macOS or iOS are also buggy here

r10s avatar Feb 02 '25 16:02 r10s

This is somewhat similar to https://github.com/deltachat/deltachat-desktop/issues/3218 (Windows-only), where a firewall alert would be shown because of WebRTC.

WofWca avatar Apr 20 '25 08:04 WofWca

i am just started an webxdc without realtime on a windows computer (wonster) - and indeed, the firewall pops up

r10s avatar May 12 '25 13:05 r10s

https://download.delta.chat/desktop/v2.20.0/ with fix: don't init Iroh on channel leave (#7210) is out, so this can be rechecked

iequidoo avatar Oct 15 '25 07:10 iequidoo