mms received trigger?

Post your questions and help other users.

Moderator: Martin

Post Reply
lexelby
Posts: 16
Joined: 15 Oct 2015 00:35

mms received trigger?

Post by lexelby » 28 Nov 2015 01:18

Is the SMS Received trigger supposed to activate when an MMS is received? On my phone, it doesn't seem to work. Tasker is able trigger on received mms just fine.

I tried disabling (freezing) all other apps related to sms/mms in case they were interfering, but it didn't help.

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: mms received trigger?

Post by Martin » 28 Nov 2015 19:30

Hi,

Trigger SMS Received only works for regular SMS but not MMS. You could try to intercept the MMS with a trigger Notification on Statusbar Displayed. This trigger often also works for other messengers like Whatsapp etc.

Regards,
Martin

lexelby
Posts: 16
Joined: 15 Oct 2015 00:35

Re: mms received trigger?

Post by lexelby » 28 Nov 2015 20:45

I see, so it's a design decision. Is there any chance you could add a trigger for MMS?

Missing this functionality is actually a pretty big problem for my use case. I use automagic (And previously tasker) to entirely replace message notifications. That way, I can:

* enforce night mode
* override silent mode and notification volume for certain people
* use a special notification sound for certain friends
* add the message to a log of recent messages in a widget on my lock screen
* display a notification on the status bar temporarily and clear after 10 seconds, to get the ticker but to avoid cluttering my tray
* And more

I could do all of this fine for mms and sms in tasker. But now that I'm trying to switch to automagic, I'm missing MMSes entirely. Enabling notifications in my sms app is undesirable and it won't let me enable notifications only for MMS.

Even just knowing an mms arrived would be an okay compromise, I suppose. I tried catching an intent as described here: http://stackoverflow.com/a/6376920/4249120 but it didn't trigger in automagic. Perhaps I did it wrong.

Any chance of mms support or a workaround?

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: mms received trigger?

Post by Martin » 01 Dec 2015 15:18

Unfortunately MMS support of the Android API is lacking which makes it complicated to handle MMS properly by apps.

Receiving MMS also requires that the app declares a permission to receive this event/intent. I can add the permission in the next update so your broadcast receiver should start to work. You could then use an action Query Content Provider to read the last received MMS from the sms/mms database of the system.

I will probably add a more general way for Automagic to be triggered when a content provider changes which would allow to be informed when MMS are received respectively when an MMS is stored in the SMS/MMS database of the system. I'm not sure if this will make it to the next update.

lexelby
Posts: 16
Joined: 15 Oct 2015 00:35

Re: mms received trigger?

Post by lexelby » 02 Dec 2015 00:38

All of that sounds great! Adding the mms permission would be an excellent first step that would at least let me achieve basic functionality. Do you know when you might be able to release that? If I knew a hacky way to add a permission to an app, I'd do it myself.

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: mms received trigger?

Post by Martin » 02 Dec 2015 20:29

Adding the permission by yourself is quite involved. You would have to patch the APK which could be time consuming to set up.

I usually release some early access builds of the next version a few weeks before the official release is made but I can not give an estimate when I'll start to do such EAP builds.
Contact me at info@automagic4android.com if you want to test a very very early build.

lexelby
Posts: 16
Joined: 15 Oct 2015 00:35

Re: mms received trigger?

Post by lexelby » 01 Mar 2016 19:30

I saw that a permission related to MMS was added to the recent release. Thank you!!

Unfortunately, my first try at using it didn't work. I have a General Broadcast trigger set up, with Action set to "android.provider.Telephony.WAP_PUSH_RECEIVED". Data Type List is set to "application/vnd.wap.mms-message", and everything else is blank. I send myself an MMS, and Tasker still picks it up, but Automagic isn't catching the broadcast and running the flow. :(

Ideas?

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: mms received trigger?

Post by Martin » 02 Mar 2016 20:29

I have not tested the broadcast myself yet, maybe there are some other things an app must do to receive this intent. I'll check when time permits.
You could switch to trigger Notification on Statusbar displayed to detect the MMS.

lexelby
Posts: 16
Joined: 15 Oct 2015 00:35

Re: mms received trigger?

Post by lexelby » 02 Mar 2016 20:34

Sure, but I want to use automagic to entirely replace the default mms notification.

Post Reply