Need a simple macro for bluetooth handsfree

h4d3z

New member
I have a bluetooth handsfree in my car that has a weird bug.
When i recieve or make a call i have to turn the speaker on and off, then it works fine.
I tried making a macro for it but nothing seems to work
i made :
trigger
active call

Actions
speaker on
speaker off

Constraints
Active call
Bluetooth device

This does not seem to work
Anyone have any suggestions ?
 

420

Active member
I have a bluetooth handsfree in my car that has a weird bug.
When i recieve or make a call i have to turn the speaker on and off, then it works fine.
I tried making a macro for it but nothing seems to work
i made :
trigger
active call

Actions
speaker on
speaker off

Constraints
Active call
Bluetooth device

This does not seem to work
Anyone have any suggestions ?
when i add the "Speakerphone On/Off" action i get a warning that it does NOT work on many devices that are running android 10+, and that there is no known solution for this. if you are on android 10+, this might be the reason that it is not working..
 

Dm114

Well-known member
I have a bluetooth handsfree in my car that has a weird bug.
When i recieve or make a call i have to turn the speaker on and off, then it works fine.
I tried making a macro for it but nothing seems to work
i made :
trigger
active call

Actions
speaker on
speaker off

Constraints
Active call
Bluetooth device

This does not seem to work
Anyone have any suggestions ?
If your device is not concerned by this restriction, you'll have to add a Wait action (let's say between 500ms and 1 second) between both Speaker action.

According to the constraints, remove the Active call one. It is useless and could prevent macro from running: to run, call cannot be active yet prior trigger firing!
 

Jacob L

Moderator (Lawsonator)
There is a solution but it does not work on every device. You can use notification interaction to click the speakerphone option.

Side note, speakerphone action that is built into MD works on WhatsApp and Telegram.
 

tanutanu

Well-known member
Modify your macro like the attached image.
I got an email from Jamie when I reported the problem as below:
This is a difficult issue as it seems like since Android 10 the speaker phone functionality no longer functions on many devices. There is no known reason for this as the functionality is still in the Android SDK and has no warnings about being deprecated or blocked in any way.

I did plan to remove this feature for Android 10+ but some users have informed me that it does work for them, therefore if I remove functionality that works fine for these users (and presumably many more silent users) I will then be breaking something that works fine for these devices. I think I should just add a very explicit warning that the functionality does not work on many Android 10 devices so at least it's clear to the user that this may not function.
 

Attachments

  • IMG_20210829_105056.jpg
    IMG_20210829_105056.jpg
    322.2 KB · Views: 30

h4d3z

New member
Tnx for the tips, did not get it to work yet.
Got to try some more but maybe it just does not work for me.
Tnx again for all the help
 

tanutanu

Well-known member
It might be caused by the "Active Call" constraint. If not and you use a Android 10++ device, try "UI interaction" action to tap "Speaker" icon(string). It works for me well after making /getting a call and waiting 1 or 2 seconds, whichever the device is locked or not.
 
Top