[BUG] - WG Tunnel opens every time a Tasker intent has been executed
Closed this issue · 2 comments
Describe the bug
Any time a WG Tunnel intent in tasker is executed, the WG app opens, intrusively interrupting my previous activities on screen. This can cause major problems when meaning to execute tunnel change via Tasker in the background and are in the middle of another activity, such as a mobile game or watching on a streaming platform
Smartphone (please complete the following information):
- Device: Motorola Edge 40 Pro
- Android Version: 14
- App Version 3.4.7
To Reproduce
Steps to reproduce the behavior:
1: Import a tunnel
2: in main Settings tab, "enable app shortcuts"
3: as shown in the screenshot below, fill out all necessary fields for the Send Intent action in Tasker
- Action:
START
(orSTOP
) - Extra1:
className:WireGuardTunnelService
- Extra2:
tunnelName:nameOfTunnel
(please make sure the entry aftertunnelName:
perfectly matches the name of the imported tunnel) - Package:
com.zaneschepke.wireguardautotunnel
- Class:
com.zaneschepke.wireguardautotunnel.service.shortcut.ShortcutsActivity
- Target: Activity
4: Start the Tasker activity
Expected behavior
I expect that WG Tunnel will handle receiving the Tasker intent and act accordingly in the background, even with a toast message, without unnecessarily opening up the app in order to act upon the intent.
Screenshots (Only if necessary)
Additional context
Add any other context about the problem here.
Hey! I don't have tasker to test this, but I made some changes that I think might fix it. Could you try it out when you get a chance? https://github.com/zaneschepke/wgtunnel/releases/tag/issue-275
I have recently installed this update and it seems that it has fixed the problem. Thank you