retrieve whatsapp notification [tasker]

Ankit Jose

Well-known member
Dec 24, 2014
103
0
0
Visit site
Hi! Can anyone tell me how to retrieve the name of the contact who sent me the last msg. I have somehow managed to retrieve the msg body and assign it to a variable using sqlite3 command. Now the name of the contact is left! Help pls!!!

Posted via the Android Central App
 

srkmagnus

Retired Moderator
May 23, 2010
13,434
210
0
Visit site
That's a good question. When you setup Tasker to read WhatsApp, long press the WhatsApp icon (via Tasker) and see if there are any options that pop-up. Often times you'll get a set of sub-menus to choose from. See if there is something in there related to the sender of a message.
 

Ankit Jose

Well-known member
Dec 24, 2014
103
0
0
Visit site
No. I got the body of the body of the msg like this
Start a new task
Click add button
Select command
Select run shell
Paste this command (without[])
[sqlite3 /data/data/com.whatsapp/databases/msgstore.db "select data
from messages WHERE key_from_me='0' ORDER BY _id DESC LIMIT 1;"]
then give a name to the variable

Posted via the Android Central App