Project

General

Profile

Issue #2429

Android App: Intent for Stop of VPN

Added by kaeptnb kaeptnb about 8 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Category:
android
Affected version:
5.6.0
Resolution:
Fixed

Description

Hello!

first of all: thanks for this great Software - including even an Android app.
All fine and dandy, Strongswan Android app connects find to Strongswan Server, even automatically via Tasker sending the needed Intent.

BUT: There no Intent to STOP the VPN - that would be perfect!

There are scenarios where IPSEC vpn is not possible but Openvpn (via tcp and/or proxy) is - so easy switching is really nice to have, but for that to work with tasker scenarios, i need a definite way to STOP the Strongswan-Androidapp-tunnel....

Could you implement an Intent for that? e.g. org.strongswan.android.action.STOP_PROFILE ... or even "STOP_ALL", so no profile has to be given? that would make the tasker-life perfect!

Greetings

History

#1 Updated by Tobias Brunner about 8 years ago

  • Tracker changed from Feature to Issue
  • Status changed from New to Feedback
  • Affected version set to 5.6.0

BUT: There no Intent to STOP the VPN - that would be perfect!

There is.

#2 Updated by kaeptnb kaeptnb about 8 years ago

Great to hear!

any hint for a documentation on this? cant find it in the Manifest:

https://github.com/strongswan/strongswan/blob/master/src/frontends/android/app/src/main/AndroidManifest.xml

but maybe i'm looking at the wrong place?

Greetings
Tobias

#3 Updated by Tobias Brunner about 8 years ago

It's not in the Manifest, you have to set the package name, class (...MainActivity) and action (...DISCONNECT) manually in your Intent.

#4 Updated by kaeptnb kaeptnb about 8 years ago

Hi!

just tried that, maybe you can point me to my error:

Action = "org.strongswan.android.action.DISCONNECT"
Package = "org.strongswan.android"
Class = "MainActivity"

i tried some more combinations with "ui.MainActivity" as Class, but - no way...

Thanks for your hint!
Greetings
Tobias

#5 Updated by Tobias Brunner about 8 years ago

Class = "MainActivity"

Should be org.strongswan.android.ui.MainActivity.

#6 Updated by kaeptnb kaeptnb about 8 years ago

ok thanks, that helped.

Thing now is - it ask for Confirmation ("Abbrechen" / "Trennen") ...

I guess theres no way around that confirmation?

Greetings!
Tobias

#7 Updated by Tobias Brunner almost 8 years ago

I guess theres no way around that confirmation?

No. The confirmation is on purpose so the user is aware a disconnect was requested and to avoid accidental disconnects via button in the notification.

#8 Updated by Tobias Brunner over 7 years ago

  • Category set to android
  • Status changed from Feedback to Closed
  • Assignee set to Tobias Brunner
  • Resolution set to Fixed