Forwarding SMS to All *Except* 1 Number

dslee

New member
Hi there,

Newbie to MD, and spent an hour trying to find the answer before posting (cuz I don't like it when newbie's ask obvious questions!)...

How do I configure a macro to forward SMS messages for all incoming messages EXCEPT if the incoming SMS is from a specific number (in this case, the same number I'm forwarding to?

Use case: forwarding OTP SMS messages to a group messaging system that has auto-replies set up, which currently results in a newfie-loop.


Thanks,

David
 

Dm114

Well-known member
When the macro is triggered by an incoming SMS, assign the {sms_number} to a variable eg sFrom, then either use an If statement or a Constraint to only forward the message if sFrom != the specific number
It's the simplest and best answer!
 

dslee

New member
Couple of questions:

So I'm banging my head against a wall and need some hand-holding. I'm an IT pro and do a bit of scripting so I'm missing something obvious for sure.

Is there a good tutorial on HOW and WHERE to do these steps?

Perhaps just the very first step: HOW do I assign the {sms_number} to the 'sFrom' variable, and then where do I set up the If statement or the Constraint?

My confusion at this point is within the Trigger, there appears to be no place to assign the number to the variable, and in the Actions and Constraints areas, I can't find any SMS functions.

Thanks again (and I've already paid for the full/pro version!).
 

Jacob L

Moderator (Lawsonator)
Trigger: SMS received

Actions: Set variable - press the three dots button then you'll see the SMS number

now you'll also see the forward SMS action
 

Andydroid

Member
Try something like this. As Jacob says above, use the three dots to get the 'magic text' values like {sms_number}. You can use either the Send SMS or the Forward SMS actions:
Screenshot_20230321_231427.jpg
 

dslee

New member
Thanks gents. May have another issue as I am setting this up on a Blackberry Motion, and MacroDroid *was* working (i.e. detecting received SMS and forwarding), and it's not stopped doing anything on inbound SMS. The Motion was reset to factory, and then an update got applied, and I think it was after the update it stopped working. Applying another update now and will see if it works then. May have to factory default it again and ignore any updates.
 

dslee

New member
Well I've created 2 macros, one very simple to play a sound on any inbound SMS, and it shows 'Never activated', which I take to mean, it doesn't see the incoming SMS.

I guess I'll factory default and start over (unless there's a known fix for this).
 

dslee

New member
Interesting - installed Handcent and set as my default SMS app, and it's now working! So Google Messages doesn't play nice with my Motion, but that's ok if this works :)

Thanks again!
 

Endercraft

Moderator (& bug finder :D)
Interesting - installed Handcent and set as my default SMS app, and it's now working! So Google Messages doesn't play nice with my Motion, but that's ok if this works :)

Thanks again!
New Android devices use a protocol called RCS, which breaks this feature as there is no way to detect them unless on notification.
 

MacroDroidDev

Administrator
Staff member
It's quite painful that they don't provide a way to access RCS messages as it's not obvious to most users that there is even any difference between SMS and RCS and there is no way they should be expected to fully understand (or care).
 
Top