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.
Do we need two notices in the Android status bar?
-
- OpenVpn Newbie
- Posts: 2
- Joined: Thu Jul 11, 2013 10:43 pm
- jack0w
- OpenVpn Newbie
- Posts: 4
- Joined: Sun Feb 17, 2013 2:24 pm
Re: Do we need two notices in the Android status bar?
Just in case another voice makes a difference, I completely agree with this point of view.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.
- jamesyonan
- OpenVPN Inc.
- Posts: 169
- Joined: Thu Jan 24, 2013 12:13 am
Re: Do we need two notices in the Android status bar?
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
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
- jack0w
- OpenVpn Newbie
- Posts: 4
- Joined: Sun Feb 17, 2013 2:24 pm
Re: Do we need two notices in the Android status bar?
Once again, that makes perfect sense, and can now understand why things are the way they are!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
Thanks for another thorough explanation, very much appreciated!
-
- OpenVpn Newbie
- Posts: 2
- Joined: Thu Jul 11, 2013 10:43 pm
Re: Do we need two notices in the Android status bar?
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?
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?
- jamesyonan
- OpenVPN Inc.
- Posts: 169
- Joined: Thu Jan 24, 2013 12:13 am
Re: Do we need two notices in the Android status bar?
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
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