Tasker detecting sent MMS as received messages

485 views
Skip to first unread message

Heather

unread,
Jun 9, 2014, 4:59:32 PM6/9/14
to tas...@googlegroups.com
Hello all!

I'm not sure what to do about this. I have a task that runs when I get a new message. It's been working fine until I just decided to switch to the Verizon Message+ app instead of the built-in messages app. Now, the task is triggered not only on received messages, but also on sent MMS messages. How can I fix this?

Brandon Horwath

unread,
Jun 9, 2014, 5:12:06 PM6/9/14
to tas...@googlegroups.com
Switch back... :/

Heather

unread,
Jun 9, 2014, 5:29:46 PM6/9/14
to tas...@googlegroups.com
Haha the reason I switched was actually Tasker-related. The same task actually causes an issue with the built-in messages app. When the task runs, it clears the unread count on the messages icon, but it's not supposed to since the message is still unread at this point. Also, a second part of the task, when activated by pressing "mark as read," marks an SMS message as read and when this happens, the built-in app still shows an unread count (not the icon, in the app itself it shows the number of unread at the top).
Any thoughts on that one? I've tried clearing the cache and force stopping the app without success. No option to clear data for the built-in app plus I wouldn't want to because it would clear my customizations.

Brandon Horwath

unread,
Jun 9, 2014, 7:18:11 PM6/9/14
to tas...@googlegroups.com
What task are you using that clears the message count?

Heather

unread,
Jun 9, 2014, 7:19:59 PM6/9/14
to tas...@googlegroups.com
All it does is create a notification with AutoNotification that includes the name of the sender, the content of the message, and delete and mark read buttons.

Heather

unread,
Jun 9, 2014, 7:21:50 PM6/9/14
to tas...@googlegroups.com
I found an intent that may work for it (android.intent.action.BADGE_COUNT_UPDATE) but I don't know how to use intents, nor do I know if it will work for my phone (HTC One M8). Do you know anything about intents?

Jeremy Harris

unread,
Jun 9, 2014, 10:06:33 PM6/9/14
to tas...@googlegroups.com
This is a dumb question, but just to cover the obvious... is there any chance that this new app IS actually receiving your sent mms messages as an inbound? This happens to me occasionally with my stock att messaging app...see screenshot.

Jeremy Harris

unread,
Jun 9, 2014, 10:09:17 PM6/9/14
to tas...@googlegroups.com
On 9 Jun 2014 22:07, "Jeremy Harris" <jharr...@gmail.com> wrote:
This is a dumb question, but just to cover the obvious... is there any chance that this new app IS actually receiving your sent mms messages as an inbound? This happens to me occasionally with my stock att messaging app...see screenshot.

--
You received this message because you are subscribed to a topic in the Google Groups "Tasker" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tasker/dvLlvTdZmqE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.
Visit this group at http://groups.google.com/group/tasker.
For more options, visit https://groups.google.com/d/optout.
Screenshot_2014-06-09-22-03-32.png

Heather

unread,
Jun 10, 2014, 1:55:13 AM6/10/14
to tas...@googlegroups.com
Not a dumb question at all, Jeremy! Unfortunately, they are not coming back as received messages so that is not the answer =(

easiuser

unread,
Jun 10, 2014, 12:46:18 PM6/10/14
to tas...@googlegroups.com
What about adding STOP if %SMSRF ~ "your phone number" as the first statement in your task.

Heather

unread,
Jun 10, 2014, 4:02:04 PM6/10/14
to tas...@googlegroups.com
It's not updating the SMSRF with my number. BUT I did fix it! I put in a Run Shell to check the mmssms.db for a column that indicates if the message was sent or received so I have the task stopping if it was sent.
 
Thanks all!

Brandon Horwath

unread,
Jun 10, 2014, 4:31:16 PM6/10/14
to tas...@googlegroups.com
Nice! Can you post a description of your solution?

Heather

unread,
Jun 10, 2014, 6:40:42 PM6/10/14
to tas...@googlegroups.com

Sure! Here it is. I haven't had time to thoroughly test it, though. A2-A7 are the solution.

Profile: SMS Notifications (54)
Event: Received Text [ Type:Any Sender:* Content:* ]
Enter: SMS Notify Options (74)
A1: Variable Add [ Name:%SMSAMT Value:1 Wrap Around:0 ]
A2: If [ %SMSRB !Set ]
A3: Run Shell [ Command:/system/xbin/sqlite3 /data/data/com.android.providers.telephony/databases/mmssms.db "SELECT _data from part where _id = (SELECT MAX(_id) from part where ct like 'image%')" Timeout (Seconds):0 Use Root:On Store Output In:%MMSBODY Store Errors In: Store Result In: Continue Task After Error:On ]
A4: Variable Section [ Name:%MMSBODY From:54 Length:500 Adapt To Fit:On Store Result In:%mmsfile ]
A5: Run Shell [ Command:/system/xbin/sqlite3 /data/data/com.android.providers.telephony/databases/mmssms.db "select pdu where _id = (SELECT MAX(_id) from pdu where smilext like '%amp%mmsfile%amp' and msg_box = '1')" Timeout (Seconds):0 Use Root:On Store Output In:%mmsnotme Store Errors In: Store Result In: Continue Task After Error:On ]
A6: Stop [ With Error:Off Task: ] If [ %mmsnotme !Set ]
A7: Else
A8: Variable Set [ Name:%sender To:%SMSRN Do Maths:Off Append:Off ] If [ %SMSRN !~ 6245 ]
A9: Variable Split [ Name:%SMSRB Splitter: Delete Base:Off ] If [ %SMSRN ~ 6245 ]
A10: Variable Set [ Name:%sender To:%SMSRB1 Do Maths:Off Append:Off ] If [ %SMSRN ~ 6245 ]
A11: AutoContacts [ Configuration:Contact Name or Nickname: %sender
Name as Nickname: true Package:com.joaomgcd.autocontacts Name:AutoContacts Timeout (Seconds):1000 Continue Task After Error:On ]
A12: AutoContacts Details [ Configuration:Contact Id: %acid
Get Picture: true
Full size: true Package:com.joaomgcd.autocontacts Name:AutoContacts Details Timeout (Seconds):1000 Continue Task After Error:On ]
A13: Variable Set [ Name:%TEXTFROM To:%sender»« Do Maths:Off Append:On ]
A14: Variable Set [ Name:%smscontent To:%SMSRB Do Maths:Off Append:Off ] If [ %SMSRB Set ]
A15: Variable Set [ Name:%smscontent To:(Multimedia Message) Do Maths:Off Append:Off ] If [ %SMSRB !Set & %MMSRS ~ /%MMSRS ]
A16: Variable Set [ Name:%smscontent To:%MMSRS Do Maths:Off Append:Off ] If [ %MMSRS Set & %MMSRS !~ /%MMSRS ]
A17: Variable Set [ Name:%TEXTBODY To:%smscontent»« Do Maths:Off Append:On ]
A18: If [ %SMSAMT > 1 ]
A19: Variable Split [ Name:%TEXTFROM Splitter:»« Delete Base:Off ]
A20: Variable Split [ Name:%TEXTBODY Splitter:»« Delete Base:Off ]
A21: For [ Variable:%msgcnt Items:%TEXTBODY(#):1 ]
A22: Variable Section [ Name:%TEXTBODY(%msgcnt) From:1 Length:40 Adapt To Fit:On Store Result In: ]
A23: Array Push [ Name:%texts Position:999 Value:%TEXTFROM(%msgcnt): %TEXTBODY(%msgcnt) Fill Spaces:Off ]
A24: End For
A25: Variable Set [ Name:%enter To:
Do Maths:Off Append:Off ]
A26: Variable Join [ Name:%texts Joiner:%enter Delete Parts:Off ]
A27: AutoNotification [ Configuration:Title: %SMSAMT New Messages
Text: %texts1
Ticker: %texts1
Action on Touch: opensms
Action on Dismiss: resetsmsamt
Icon: %acpicturefile
Status Bar Icon: stat_notify_chat
Id: 120986
Title Expanded: %SMSAMT New Messages
Text Expanded: %texts
Icon Expanded: %acpicturefile Package:com.joaomgcd.autonotification Name:AutoNotification Timeout (Seconds):0 ]
A28: Else
A29: If [ %SMSRB Set ]
A30: AutoNotification [ Configuration:Title: %sender
Text: %SMSRB
Ticker: %sender: %SMSRB
Action on Touch: opensms
Action on Dismiss: resetsmsamt
Icon: %acpicturefile
Status Bar Icon: stat_notify_chat
Id: 120986
Text Expanded: %SMSRB
Icon Expanded: %acpicturefile
Button 1: deletesms
Label 1: Delete
Icon 1: content_discard_dark
Button 2: markread
Label 2: Mark Read
Icon 2: content_read Package:com.joaomgcd.autonotification Name:AutoNotification Timeout (Seconds):0 ]
A31: Else
A32: AutoNotification [ Configuration:Title: %sender
Text: %smscontent
Ticker: %sender: %smscontent
Action on Touch: opensms
Action on Dismiss: resetsmsamt
Icon: %acpicturefile
Status Bar Icon: stat_notify_chat
Id: 120986
Title Expanded: %sender
Picture: %MMSBODY
Icon Expanded: %acpicturefile
Button 1: deletemms
Label 1: Delete
Icon 1: content_discard_dark
Button 2: markreadmms
Label 2: Mark Read
Icon 2: content_read Package:com.joaomgcd.autonotification Name:AutoNotification Timeout (Seconds):0 ]
A33: End If
A34: End If
A35: End If

Reply all
Reply to author
Forward
0 new messages