Page 1 of 1

Need Help adapting Tasker Send Intent

Posted: 23 Apr 2019 19:12
by luigi
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

Re: Need Help adapting Tasker Send Intent

Posted: 23 Apr 2019 19:37
by Martin
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

Re: Need Help adapting Tasker Send Intent

Posted: 24 Apr 2019 17:49
by luigi
That works,thank you for your help!

Regards
Luigi