Autoresponder only on SIM2

Nierewa

New member
Hi,

I installed Macrodroid to autorespond calls with a sms.
Works great. But there's one thing...

...how can I make this work only with SIM2?
 

MacroDroidDev

Administrator
Staff member
Unfortunately there is no universal way on Android to detect what SIM card an incoming call is from. (Multi sim support in the base OS is still very lacking so manufacturers mostly do custom implementations to support it).

Usually when a call is incoming there is an associated notification present. If this notification indicates which SIM the call is from then you can probably use this as a trigger instead and react accordingly. Or alternatively experiment with the notification constraint to act differently depending on the contents of the notification.
 

Nierewa

New member
Thanks for your reply.

Or alternatively experiment with the notification constraint to act differently depending on the contents of the notification.
Can you explain how i react to notifications?

Edith:
OK. IT works now.
When a call comes in notification show provider1 or provider2. So first I choose "notification text contains provider2". This doesn't work. However. If I choose "notification text doesn't contain provider1" it works.

So thank you for this great app!
 
Last edited:

tanutanu

Well-known member
So first I choose "notification text contains provider2". This doesn't work. However. If I choose "notification text doesn't contain provider1" it works.
These two conditions don't mean the same things. Try checking both [not_title] and [notification] in actions(popup or so) as a test if you didn't and want to make it clear:)
 

Nierewa

New member
Hmm... doesn't work anymore. Don't know why
What do you mean with [not_title] and [notification]?
 

Attachments

  • Autoresponder.macro
    1.6 KB · Views: 8

tanutanu

Well-known member
Hmm... doesn't work anymore. Don't know why
What do you mean with [not_title] and [notification]?
Use Notification trigger to see what it really contain for testing.
Not means not, just reversed a boolean value. When a string does NOT contain the string "provider1," it means as is, does NOT mean It contains "provider2"(still might contain or not contain "provider2").

If you really got a word, provider 1 or 2 in [not_title] or [notification], you should trigger with its Contains condition filter. After getting both in Actions, you can check each not only by your own eyes but by Text manipulation action.
As your #3 additional comment, you could get and it should be ok, but failed. Remember what @MacroDroidDev said. You might have to looking for another way.
 

Nierewa

New member
Not means not, just reversed a boolean value. When a string does NOT contain the string "provider1," it means as is, does NOT mean It contains "provider2"(still might contain or not contain "provider2").
I know.
Only "Provider1" should NOT be in the message. Everything else doesn't matter, right?
So if "provider1" is NOT in the notification, the macro should be executed.
 

tanutanu

Well-known member
I know.
Only "Provider1" should NOT be in the message. Everything else doesn't matter, right?
So if "provider1" is NOT in the notification, the macro should be executed.
I'm not sure it is ok or not for you. It's up to you. I just mentioned:)
When anonymous, no caller id, wifi calling or something, your macro
might work. I didn't see what the notification show you at those situations.

The thing I wanted to say is that if provider2 is surely connecting, the notification might contain some unique keywords. Generally the positive test is better if it can. However, it depends on your provider2, so I'm not sure as well.
 
Top