syncthing-android icon indicating copy to clipboard operation
syncthing-android copied to clipboard

Add support for roaming mobile data run condition

Open pkoch opened this issue 3 years ago • 4 comments

From https://forum.syncthing.net/t/mobile-data-run-condition-and-roaming/18323/2

As a user who's afraid of paying roaming fees but has an unlimited data plan in their own contry, I'd like to have a run condition that prevents syncthing to work while roaming, in order to not get a problematic data bill.

pkoch avatar Apr 17 '22 14:04 pkoch

I'm happy to take a try at a PR if I'm provided some guidance. :)

pkoch avatar Apr 17 '22 14:04 pkoch

Note to self: look around https://github.com/syncthing/syncthing-android/blob/3cb96b51d5cf8fad0cb22d74fd3f07335d23c0ab/app/src/main/java/com/nutomic/syncthingandroid/service/RunConditionMonitor.java#L163

pkoch avatar Apr 17 '22 20:04 pkoch

This seems like a sensible extension to the existing run conditions (if running on mobile data, have another switch to also run on roaming or not).
You already found the relevant part of the code. Feel free to ask any questions here or on a (possibly wip) PR when you are taking a stab at implementing this.

imsodin avatar Apr 18 '22 10:04 imsodin

I've since gotten WiFi in my home, and my motivation to get to this dropped dramatically. Sorry for backing out, and feel free to close if you don't want the clutter.

pkoch avatar May 21 '22 19:05 pkoch