This guide will go over how to play a sound/alarm/ding and auto-reply when you receive a certain SMS/text message from the Google Hangouts app. The sound will also play regardless of your do not disturb, sleep hours, silence settings.
I needed this so my family could wake me up in case of emergency or if I ever overslept when we were supposed to get together. I have been using this setup since July 2016 it has been working great. I have used this on a Moto E (Android 5) and a Google Pixel (Android 7 and 8) with Google Voice.
The phone on the right has Tasker running and the left phone sends a standard text message.
To get started, purchase and download the following apps. The total cost is $5.50 presently.
Open up Tasker
In the top-right, click the 3-dot menu icon and go to Preferences
to turn off Beginner Mode
Open up AutoNotification and the unlock key app to make sure everything is activated and ready
Go back to the main screen. Press and hold the home looking icon in the bottom-left corner and click the Add
button to create a new project. Projects allow you to organize a set of profiles/tasks, etc into a single place (like a folder). Let's call it Ping Pong
. Once created, you will see a Ping Pong
tab at the bottom of the screen.
While you are on the Profiles
tab, click the plus +
button to start creating a new profile -> Event
-> Plugin
-> AutoNotification
-> Intercept
Click the configuration edit pencil icon
On the configuration screen, do the following
Has Reply Action
Apps
, choose Hangouts
Notification Text
setting and enter (?mi).*\bping\b.*
(?mi)
adds the m
ultiline and case-i
nsensitive flags (so people can send PING
, ping
, PiNg
, etc).*
on either side will ensure any text with ping
will be matched (perhaps you don't want this)\b
on either side will only match if the ping
is separated by a word boundary like spacesCase Insensitive
checkbox (this doesn't interact with the Regex
option but whatever)Regex
checkboxClick the checkmark at the top to confirm and your profile config for the intercept event should looking something like the following. Press the back button to be done and Tasker will prompt you to create a new task.
The task is what will happen when you receive the "ping" SMS/text. In this example we will turn up the sound level, play some sounds to wake you up, and automatically reply back to the sender so they know it worked, etc.
Click new task and name it Ping me
On the task edit screen, press the plus +
button to add a new action -> Plugin
-> AutoNotification
-> Reply
Click the configuration edit pencil icon
On the configuration screen, change the Reply Text
to pong
.
Click the checkmark at the top to confirm.
Back on the task edit screen, repeat the process to create more actions, press the plus +
button
Audio
-> Notification Volume
. Change the Level
to 7
Audio
-> Media Volume
. Change the Level
to 15
Alert
-> Notify Sound
. Change the Title
to Ping
Alert
-> Beep
. The defaults are fine (and annoying)Task
-> Wait
. Change the Seconds
to 2
Alert
-> Morse
. Change the text to SOS
That should be enough to wake you up (warning LOUD if you are testing). Now when someone texts you "ping", your phone will blare some sound and auto reply with "pong".
To test, you can try texting yourself from another device or from the Google Voice interface on your computer.
You may want to cover up your speaker with your finger or adjust the sound level of the actions while you are testing as it is very loud.