Need Help adapting Tasker Send Intent

Post your questions and help other users.

Moderator: Martin

Post Reply
luigi
Posts: 2
Joined: 29 Jan 2019 14:27

Need Help adapting Tasker Send Intent

Post by luigi » 23 Apr 2019 19:12

On Tasker I have the following Send Intent running:
Action: me.msfjarvis.viscerion.SET_TUNNEL_UP (or SET_TUNNEL_DOWN)
Extra: tunnel_name:<name of your tunnel>
Extra: integration_secret:<Secret set in Viscerion>
Package: me.msfjarvis.viscerion
Class: com.wireguard.android.services.TaskerIntegrationReceiver

I am now trying to send this Intent with Automagic without success (tried Start Activity and Send Broadcast)

Could someone help me please?

Regards
Luigi

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Need Help adapting Tasker Send Intent

Post by Martin » 23 Apr 2019 19:37

Hi,

I think there's an option in Tasker that specifies if it should target an activity, broadcast receiver or service. Use action Send Broadcast, Start Activity or Start Service according to the configuration in Tasker.

-Action use the same value that you've used in Tasker
-Extras: Sounds like the values are strings so you can add this script to the field Extras:
putString("tunnel_name", "<name of your tunnel>");
putString("integration_secret", "<Secret set in Viscerion>");
-Explicit Component: checked and set the fields Package Name and Class Name to me.msfjarvis.viscerion respectively com.wireguard.android.services.TaskerIntegrationReceiver

Regards,
Martin

luigi
Posts: 2
Joined: 29 Jan 2019 14:27

Re: Need Help adapting Tasker Send Intent

Post by luigi » 24 Apr 2019 17:49

That works,thank you for your help!

Regards
Luigi

Post Reply