Jigsaw-Code / outline-apps

Outline Client and Manager, developed by Jigsaw. Outline Manager makes it easy to create your own VPN server. Outline Client lets you share access to your VPN with anyone in your network, giving them access to the free and open internet.
https://getoutline.org/
Apache License 2.0
8.22k stars 1.35k forks source link

Android App gets killed in background #625

Open riyaz opened 4 years ago

riyaz commented 4 years ago

Describe the bug Been using outline android app for last few days, app seems to get killed and vpn is disconnected if phone is not used for few hours, especially overnight it always gets killed

To Reproduce Steps to reproduce the behavior:

  1. Connect in Outline
  2. Leave it without charging overnight
  3. Morning VPN is not connected and you don't see the outline notification too

Expected behavior VPN shoudln't disconnected and persistent outline notification should be there

Smartphone (please complete the following information):

Submit Feedback Done

Additional context To avoid app being killed in background I have excluded the app from 'Battery Optimization' I myself Android dev let me know if you need any additional logs

riyaz commented 4 years ago

Just found another VPN settings in OS level, 'Always-on VPN' and 'Block connections without VPN', will update if the app gets killed over time.

riyaz commented 4 years ago

I got disconnected again and app was dead, I guess this could be due to network glitch, however i thought app will retry to connect when it happens.

Below is the error I got after I have enabled always-on settings for VPN.

image