Page 1 of 1
mms received trigger?
Posted: 28 Nov 2015 01:18
by lexelby
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.
Re: mms received trigger?
Posted: 28 Nov 2015 19:30
by Martin
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
Re: mms received trigger?
Posted: 28 Nov 2015 20:45
by lexelby
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?
Re: mms received trigger?
Posted: 01 Dec 2015 15:18
by Martin
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.
Re: mms received trigger?
Posted: 02 Dec 2015 00:38
by lexelby
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.
Re: mms received trigger?
Posted: 02 Dec 2015 20:29
by Martin
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.
Re: mms received trigger?
Posted: 01 Mar 2016 19:30
by lexelby
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?
Re: mms received trigger?
Posted: 02 Mar 2016 20:29
by Martin
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.
Re: mms received trigger?
Posted: 02 Mar 2016 20:34
by lexelby
Sure, but I want to use automagic to entirely replace the default mms notification.