Notification/Alarm sound alert even phone is silent

needify

New member
Hello users.
I want to create a macro please guide me.

My criteria:
1. Phone must be in silent (means no notification or media sound. Alarm sound is allowed)
2. Notification from a particular app must create sound. E.g. I want to receive notification with sound in my Timetable app and water drink reminder app.
3. After notification/alarm sound received from those particular apps, the phone must go back in silent mode.

I tried too many apps on play store and amazed no developer is aware or interested in such thing so I approached to Macrodroid and hope I will get a good solution here.

Thanks.
 

needify

New member
Sorry to say but it is not working. And how to put back phone in silent mode again automatically using macrodroid. Kindly respond in your free time. I am new.
 

thisismyshine

New member
It's not the answer to your question specific to macros, but I think that's a function you can just set up through the 'do not disturb' setting in Android. It allows specific contacts and specific apps to make sound but everything else is silent.

Just wanted to offer that in case you just need to be able to do this. If you want to still make the macro though, the above should work.
 

MacroDroidDev

Administrator
Staff member
What @Jacob L has suggested is the correct solution, but what is missing is the fact you will need to play the sound on a channel that is not muted. Given that you are saying it's ok for the alarm volume to be non muted you could just output the play sound action on this channel. You can currently set this in the settings (play sound audio stream). In the next update you will be able to set this directly on the play sound action. Alternatively you would need to temporarily increase the volume of (for example) the media channel, play the sound then put it back to zero.
 

AhmedZ

New member
I also have a similar issue and use case. Would it be possible to add ability to specify constraint of "Not" in a certain Ringer Mode. I want to set a constraint so that an action would play if it isn't in Silent mode, but will play if vibrate only.
Similar to the "not in" for do no disturb.
 

Endercraft

Moderator (& bug finder :D)
I also have a similar issue and use case. Would it be possible to add ability to specify constraint of "Not" in a certain Ringer Mode. I want to set a constraint so that an action would play if it isn't in Silent mode, but will play if vibrate only.
Similar to the "not in" for do no disturb.
Use the NOT constraint.
 

AhmedZ

New member
Thank you that's awesome! The one action/constraint I wasn't aware of. I was doing some weird stuff in my ignorance
 

AhmedZ

New member
Unfortunately, Macrodroid's detection of Ringer Volume for "Vibrate" and "Silent" doesn't distinguish between Ringer Volume and DnD. i.e. DnD = Silent.
For example:
if I have DnD enabled Ringer Volume also is detected as zero.

Not quite a bug.

I'm wondering if there is a way to set a local variable to the current setting from System Setting for the current ringer mode... and I just use that.
But looks like that System Setting action only allows changing the setting not reading from it to a variable?
 

MacroDroidDev

Administrator
Staff member
This is certainly not a beta feature and has been in the production app for a long time.

The user is probably using a very old version and there is usually one particular reason why this is the case.
 

AhmedZ

New member
It was in my error, the variable I had was set to integer instead of string. Thank you for all the help!
Now time to look for the right System Setting that gets changed 😅
 

maorm

New member
Hi, can you please share here your macro so i can download it too?
Ive been searching for
Hello users.
I want to create a macro please guide me.

My criteria:
1. Phone must be in silent (means no notification or media sound. Alarm sound is allowed)
2. Notification from a particular app must create sound. E.g. I want to receive notification with sound in my Timetable app and water drink reminder app.
3. After notification/alarm sound received from those particular apps, the phone must go back in silent mode.

I tried too many apps on play store and amazed no developer is aware or interested in such thing so I approached to Macrodroid and hope I will get a good solution here.

Thanks.
Hi, can you please share here your macro so i can download it too?
Ive been searching for it for decades.
Thanks!
 

donutheist

New member
Unfortunately, Macrodroid's detection of Ringer Volume for "Vibrate" and "Silent" doesn't distinguish between Ringer Volume and DnD. i.e. DnD = Silent.
For example:
if I have DnD enabled Ringer Volume also is detected as zero.

Not quite a bug.

I'm wondering if there is a way to set a local variable to the current setting from System Setting for the current ringer mode... and I just use that.
But looks like that System Setting action only allows changing the setting not reading from it to a variable?
global.zen_mode = 1 is DND on my OnePlus device.
 
Top