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

Low power mode on iOS #105

Open
smilindave26 opened this issue Jun 18, 2022 · 6 comments
Open

Low power mode on iOS #105

smilindave26 opened this issue Jun 18, 2022 · 6 comments

Comments

@smilindave26
Copy link
Member

smilindave26 commented Jun 18, 2022

E.g., Something like this if done outside of direct support in TSDK

  • on phone sleep, disconnect Ziti (disabling identities should be sufficient, assuming disabling attempts to access the controller and ERs causes the majority of battery usage)
  • on wake, reconnect
  • Button on UI to enable/disable this mode (presuming since some apps will need connectivity while phone is sleeping

Alt: consider supporting this mode in TSDK (e.g., connect to ERs only on Dial attempt - perceived performance would be impacted, and doesn't address hosting services...)

@smilindave26
Copy link
Member Author

Also - make sure that "low power mode" requires interceptDnsByMatchingDomains==true to avoid DNS traffic routing through the appex...

@smilindave26
Copy link
Member Author

some notes from The Eskimo: https://developer.apple.com/forums/thread/95988

@smilindave26
Copy link
Member Author

Disabling identities on sleep and re-enabling on wake so fair if a big failure. When not in Do-no-disturb, phone sleeps and wakes up very vert frequently, having the opposite of intended effect on the battery.

Need a new strategy:
a) only disable if been asleep for some time period (e.g., a couple of mins)?
b) only disable if also in Do-not-disturb mode?
c) add a setting in TSDK or CSDK that allows a quick "tune down" (dramatically slow down things like service requests and posture checks, anything else running on a timer...)?
d) Just setting tunnel networking to nil so no apps using the tunnel can cause traffic? prob not enough. maybe combine with c)?

@mvelbaum
Copy link

I was wondering if this can be prioritized again? As of right now the mobile client massively drains the battery, making it impractical to leave it enabled all the time. It would be great if it could get to the level of the WireGuard iOS client, which consumes very little power.

@smilindave26
Copy link
Member Author

Yes. We have heard from a handful of users that they are having this issue and are discussing potential approaches to address it. When we have something, I'll post it in Discourse and on this issue and solicit users to join a TestFlight.

@mvelbaum
Copy link

Wonderful! Looking forward to it.

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