getlantern / lantern-mobile

**Umaintained ** Lantern for Android
https://github.com/getlantern/lantern-client
114 stars 30 forks source link

Doesn't run in background #46

Open quantum1423 opened 8 years ago

quantum1423 commented 8 years ago

I'm using Sony Xperia Z3 compact with Android 5.1.1. When I turn on Lantern, it works, but as soon as I swipe it away from my open apps list, Lantern closes and doesn't proxy my traffic anymore.

Is this normal behavior? I find that a few apps seem to misbehave in this way with my phone, perhaps Sony's particular build of Android handles app closing differently? Or is this a bug with Lantern?

myleshorton commented 8 years ago

@atavism and @oxtoacart what's the expected behavior here?

atavism commented 8 years ago

@myleshorton The current behavior is to stop Lantern when you swipe and close the app from the open apps list, but we could definitely run it as a background task unless/until the VPN service is disconnected (and we already have that functionality available).

atavism commented 8 years ago

Thanks, @quantum1423! I checked this is standard behavior with a few VPN apps (looked at TunnelBear and Betternet). Should be a quick fix on our side.. @myleshorton, I added it as a task to 2.1.1. Sound good?

myleshorton commented 8 years ago

Perfect @atavism!

On Thu, Mar 3, 2016 at 10:17 AM, atavism notifications@github.com wrote:

Thanks, @quantum1423 https://github.com/quantum1423! I checked this is definitely standard behavior with most VPN apps (looked at TunnelBear and Betternet). Should be a quick fix on our side.. @myleshorton https://github.com/myleshorton, I added it as a task to 2.1.1. Sound good?

— Reply to this email directly or view it on GitHub https://github.com/getlantern/lantern-mobile/issues/46#issuecomment-191893084 .

President Brave New Software Project, Inc. https://www.getlantern.org pgp A998 2B6E EF1C 373E 723F A813 045D A255 901A FD89

quantum1423 commented 8 years ago

Ideally this could be made into a switch in the settings; for example when I just need to occasionally quickly log into and check an unencrypted http website on open wi-fi I might want the current behavior, but when I'm visiting China and I want all my traffic to be proxied over hours or even days, it'd be much better for it to run almost invisibly.

oxtoacart commented 8 years ago

@quantum1423 Since the app allows you to turn easily turn Lantern off, do you think that's enough or do we really need an option to toggle background vs foreground?

quantum1423 commented 8 years ago

Oh yeah, herp derp, sorry

oxtoacart commented 8 years ago

@quantum1423 No need to apologize, I was just trying to clarify your need. Really appreciate the feedback!