Do we need two notices in the Android status bar?

Official client software for OpenVPN Access Server and OpenVPN Cloud.
Post Reply
schwarznavy
OpenVpn Newbie
Posts: 2
Joined: Thu Jul 11, 2013 10:43 pm

Do we need two notices in the Android status bar?

Post by schwarznavy » Thu Jul 11, 2013 10:45 pm

I have Android 4.2.2 and I'm using the latest version of OpenVPN Connect available in the Google Play store. Is there a way to get rid of one of the notices in the status bar when connected? Both of them pretty much give the same info.

Thank you.

User avatar
jack0w
OpenVpn Newbie
Posts: 4
Joined: Sun Feb 17, 2013 2:24 pm

Re: Do we need two notices in the Android status bar?

Post by jack0w » Fri Jul 12, 2013 5:33 pm

schwarznavy wrote:I have Android 4.2.2 and I'm using the latest version of OpenVPN Connect available in the Google Play store. Is there a way to get rid of one of the notices in the status bar when connected? Both of them pretty much give the same info.

Thank you.
Just in case another voice makes a difference, I completely agree with this point of view. :)

User avatar
jamesyonan
OpenVPN Inc.
Posts: 169
Joined: Thu Jan 24, 2013 12:13 am

Re: Do we need two notices in the Android status bar?

Post by jamesyonan » Fri Jul 12, 2013 6:28 pm

The two notifications are something that Android requires to affirm that the VPN
session is high priority and should not be arbitrarily terminated by the system.

We originally had one notification but found that Android would often kill the VPN session without warning.

One of the notifications is generated by Android itself to show that a VPN is active. This is out of the control of the app.

The other notification indicates that OpenVPN is a high-priority service. Without this notification, Android would assume that it's okay to automatically kill the service if it goes into the background, which happens every time you switch away from OpenVPN to another app.

James

User avatar
jack0w
OpenVpn Newbie
Posts: 4
Joined: Sun Feb 17, 2013 2:24 pm

Re: Do we need two notices in the Android status bar?

Post by jack0w » Fri Jul 12, 2013 6:56 pm

jamesyonan wrote:The two notifications are something that Android requires to affirm that the VPN
session is high priority and should not be arbitrarily terminated by the system.

We originally had one notification but found that Android would often kill the VPN session without warning.

One of the notifications is generated by Android itself to show that a VPN is active. This is out of the control of the app.

The other notification indicates that OpenVPN is a high-priority service. Without this notification, Android would assume that it's okay to automatically kill the service if it goes into the background, which happens every time you switch away from OpenVPN to another app.

James
Once again, that makes perfect sense, and can now understand why things are the way they are!

Thanks for another thorough explanation, very much appreciated! :)

schwarznavy
OpenVpn Newbie
Posts: 2
Joined: Thu Jul 11, 2013 10:43 pm

Re: Do we need two notices in the Android status bar?

Post by schwarznavy » Fri Jul 12, 2013 10:59 pm

Thank you for the reply. Since I know nothing about developing for Android, are there any similarities to the way that Skype is able to stay open, connected and without getting shut down by Android? Skype only has one notification...
Similarly, when I enable the wi-fi or USB tether, there is only one notification.
Could looking at those apps offer some kind of clue to a workaround?

User avatar
jamesyonan
OpenVPN Inc.
Posts: 169
Joined: Thu Jan 24, 2013 12:13 am

Re: Do we need two notices in the Android status bar?

Post by jamesyonan » Mon Jul 29, 2013 5:44 pm

Technically, OpenVPN has only one notification icon just like Skype and other apps. There is a second notification icon that is generated by Android automatically when the VPN is active. The second notification icon is owned by Android and cannot be controlled from OpenVPN.

Skype and other service-oriented apps have one notification like OpenVPN, however since they are not VPN apps, there is not an additional notification icon generated by Android.

I think you will see that any Android VPN app that uses the Android 4.0 VPN API must have two notification icons to work properly.

James

Post Reply