Can somebody tell me why none of this works?

Dimlos

Well-known member
I am unable to use the text now app at my location. I think you need to adjust it to your environment.
The reply is only to the notification, so if the notification is not displayed, such as when the message app is open, the reply will not be made.
 

Wjbell1

Member
You may use the notification reply action to skip the notification listener plugin entirely.
Okay. I'm guessing you mean the built-in one to macrodroid. that doesn't seem to be the problem right now. Like I replied to below I had a friend text messaged me with the word find. He did and it sent me the word fine but also Three Links to my location and sent him nothing in reply to his word find. This is really weird why it's not sending the location to the sender of the message but it's sending the location to my phone that the script is running on.
You may use the notification reply action to skip the notification listener plugin entirely.
 

Dimlos

Well-known member
I still think there is a problem with the environment of your device, something is going wrong as it is not a standard environment, such as sending to yourself from text now.

As @Endercraft mentioned, the macro seems to be working in an environment other than yours, so I don't think further testing in your current state will yield good results.
 

Wjbell1

Member
You may use the notification reply action to skip the notification listener plugin entirely.
Okay. I'm guessing you mean the built-in one to macrodroid. that doesn't seem to be the problem right now. Like I replied to below I had a friend text messaged me with the word find. He did and it sent me the word fine but also Three Links to my location and sent him nothing in reply to his word find. This is really weird why it's not sending the location to the sender of the message but it's sending the location to my phone that the script is running on.
 

Wjbell1

Member
I am unable to use the text now app at my location. I think you need to adjust it to your environment.
The reply is only to the notification, so if the notification is not displayed, such as when the message app is open, the reply will not be made.
Okay so I had a friend of mine text me from his number on his phone with the word find. When he did that I got his text with the word find but in the same text I got three links to my location. He got nothing bounced back to him with my location he got no response at all. So this takes the text now application out of the equation.

So we got a separate phone with its own phone number texting me the word find and instead of him getting my link location sent back to him, I get my link location in his text on my phone.
 

Dimlos

Well-known member
Have you tested that the original number and the text now number can send and receive SMS completely independently?
I can't test text now so I have no way to verify this.
 

Wjbell1

Member
Have you tested that the original number and the text now number can send and receive SMS completely independently?
I can't test text now so I have no way to verify this.
If you mean can I text my friend with text now and he will receive the text and reply to me and it will come back to me in the text now app only, and the same thing from the text app operating on my real phone number, then the answer is yes. They both operate independently of each other.
 

Wjbell1

Member
Okay I looked at my system log and I'm getting a generic error saying that it's failing to send the SMS message. So everything else in the script is working macrodroid just can't send the message. It tries to send it but fails. I have all my permissions set to allow on macro Droid, I've set macro Droid to be a device administrator and I've also allowed macro Droid to modify system settings. Here's a screenshot of the log. Can anybody tell me why macrodroid can't send the SMS message?Screenshot_20230716-072406.png
 

Wjbell1

Member
I think I found the problem. Look at the purple text I think I need a grant permissions via ADB. I thought I did this before but now that I think about it I've uninstalled and reinstalled macrodroid since then. I'll update the thread if I get it working.
Screenshot_20230716-074903.png
 

Endercraft

Moderator (& bug finder :D)
I do not see how this is needed in your case. Maybe it's because the share location tries to enable location services when sharing.
 

Wjbell1

Member
Okay this is going to be completely frustrated. So I uninstalled and reinstalled macrodroid. I went through all the permissions and enabled them all. I did the a ADB commands just in case. I wrote a whole new script that if you call my phone from any number it is supposed to send out a text message with my location to that phone number. I kept it super simple. Here is the macro and the screenshot of my system log after I run this macro.

Can either of you guys, or anyone for that matter, tell me what this error message means and why this simple script is not working?Screenshot_20230716-112749.png
 

Attachments

  • Locate.macro
    1 KB · Views: 3

Endercraft

Moderator (& bug finder :D)
At first glance it seems you are sending an SMS to "null".
Screenshot_2023-07-16-20-40-07-789-edit_com.arlosoft.macrodroid.jpg
For me it doesn't send the SMS at all..
The log is not cut off, these are all entries.

Oh actually I got the same thing as you. It's a bug then.
Screenshot_2023-07-16-20-48-15-011-edit_com.arlosoft.macrodroid.jpg
 
Last edited:

Wjbell1

Member
At first glance it seems you are sending an SMS to "null".
View attachment 6063
For me it doesn't send the SMS at all..
The log is not cut off, these are all entries.

Oh actually I got the same thing as you. It's a bug then.
View attachment 6064
It sure does look like I'm sending it to null. Do you think it's a bug or the way my script is written? Should I try to capture the call number in a local variable and then use that local variable to send the SMS to? Do I need an if/then statement that says when a trigger is fired from an incoming call then send the SMS?
 

Wjbell1

Member
Instead of select contact -> Incoming call num try Select number -> [sms_number].
I'm not sure I understand. Because this macro is based off of an incoming call. There is no incoming SMS number. Unless you're saying have the trigger be an incoming SMS. But I've already tried that. I'm probably not understanding. This latest script recognizes that there's an incoming call. And I would hope that it recognizes the incoming call number.

I've tried so many things that I don't know what's what anymore really.

Can somebody try to write a macro that either triggers off and incoming call or an SMS message that will send the location of the phone called to the phone calling? It does not to be fancy but I can't seem to figure it out. I'm getting one error or another. The last air in the system log that seemed to be significant was that I needed to connect through ADB and give it permissions. I did this. It still doesn't work. So I switched it over to it being triggered by a phone call. That's giving me a whole different error in this latest post and I posted a screenshot. I just don't know what to do now.
 

Dimlos

Well-known member
With the macro you wrote, I too got null and could not send SMS.
With a slightly modified macro, I was able to send SMS.
If it doesn't work with this macro, I think it depends on the environment of your device.
 

Attachments

  • Macro.jpg
    Macro.jpg
    307 KB · Views: 5
  • Share_Location.macro
    1.2 KB · Views: 1

Wjbell1

Member
With the macro you wrote, I too got null and could not send SMS.
With a slightly modified macro, I was able to send SMS.
If it doesn't work with this macro, I think it depends on the environment of your device.
Okay thank you. I'll try in a little bit. I was going to come back and reply and add to that, that it seems like I'm having multiple problems. So if I could get somebody to write a simple one that works for them that would be great. Because then I can try it and narrow it down to permission problems or whatever that I'm having on my device and figure it out from there. Because with all the stuff I'm trying I don't know if it's just a bad script that I'm writing or a problem with my device. I'll try this latest from you and see what happens.
 

Endercraft

Moderator (& bug finder :D)
Oh yeah sorry I got confused it is indeed [call_number] and not [sms_number].

At this point I have no idea how it doesn't work. What version are you using ?
 

Dimlos

Well-known member
I recommend that you check if it works correctly by sending an SMS in action with no trigger.
If this does not work, then it is definitely a device problem.
 

Wjbell1

Member
Oh yeah sorry I got confused it is indeed [call_number] and not [sms_number].

At this point I have no idea how it doesn't work. What version are you using ?
I'm using it with 5.18 something. I know it's an older version but it was working with this before.
 
Top