Auto-send messages with Signal/almost any app

XlAfbk

Senior Member
Aug 11, 2010
1,455
421
113
Hi guys,
I recently started using Signal for communicating with some guys and needed a way to be able to send messages from Tasker without requiring any interaction. What I came up with is a way that should actually work for any SMS app that's out there!

There's a service intent "android.intent.action.RESPOND_VIA_MESSAGE" that's normally used when you decline a call and chose to send a message to the caller - and unlike all the other intents it doesn't require any user input! However being a service intent it's not possible to call it using Taskers "Send Intent" action but instead one has to use "Run shell" as root.

Task setup:
- Variables -> Variable set: Name: %smsto, To: Receipients number
- Variables -> Variable set: Name: %smstext, To: SMS text
- Add action "Run shell": Use root: Yes, Command:
Code:
am startservice -a android.intent.action.RESPOND_VIA_MESSAGE -c android.intent.category.DEFAULT -d smsto:%smsto -e android.intent.extra.TEXT "%smstext" org.thoughtcrime.securesms/.service.QuickResponseService
To make sure the event is handled by Signal I send the message directly to Signals service handling these events (org.thoughtcrime.securesms/.service.QuickResponseService) - this can be found by examining Signals AndroidManifest.xml.

If you want to use some other app for sending the message replace "org.thoughtcrime.securesms/.service.QuickResponseService" with your apps service for receiving these intents, just have a look at the apps AndroidManifest.xml and search for the service handling the RESPOND_VIA_MESSAGE action.

Have fun!
 
  • Like
Reactions: Zormal and rdnetto
K

kitkat85

Guest
Great! However I didn't understand why you need run shell. In Tasker you can select the target: receiver, activity or service. Select service and Tasker will send the intent for you.
 

XlAfbk

Senior Member
Aug 11, 2010
1,455
421
113
Select service and Tasker will send the intent for you.
Nope: "Send Intent: permission denied by Android". Some service intents are restricted to system, so it's either a root shell or making Tasker a system app.
 
Last edited:

pedxing128

New member
Sep 13, 2017
2
1
0
Group messages

Thanks for this. It works great! Do you know if there is a way to have Tasker send a message to a Signal group? I've tried using the name of the group as the "smsto" number, but haven't had any luck with that.
 

mav75

Member
Dec 12, 2011
19
5
0
I recreated that task. My phone isn't rooted and unfortunately it doesn't work. Is there a way without root sending with tasker signal messages?
 

voilsb

Senior Member
Jun 2, 2013
83
22
28
It seems to send a signal message to an individual number. If %smsto="Group Name" it tries to send an unsecured message to the group 😔