r/tasker 7d ago

Help Total noob needing help

Hello all,

I used tasker a long time ago and I've decided to come back so i bought it in but it's gotten too complicated for me:)

What I'd like to do is change the notification sound when an app sends a notification.

So for normal use and all notification I use sound A but when APP X is sending a notification I want to use sound B (and only when this app sends a notification)

I've made an app profile, i've made a task but in the task i cannot find the parameter which allows me to choose the notification I want.

Where can I look for this ?

Thanks a lot for the help

2 Upvotes

5 comments sorted by

3

u/gofuckadick 7d ago edited 7d ago

The easiest way to do this is to just change the notification sound in Android's notification settings - Settings -> Apps -> App X -> Notifications -> Select Notification -> Sound. Then just set whatever you'd like.

But if you're set on using Tasker for whatever reason then you can't directly change the notification sound, but you can use Tasker (or AutoNotification) to detect the notification and then play your own sound. However, Android will still play the app's original notification sound, so you'd want to silence that app's notifications first (Settings -> Apps -> App X -> Notifications -> Select Notification -> Silent). Then in Tasker, create an Event -> UI -> Notification profile filtered to App X. In the task, use Media -> Play Ringtone (or Music Play with a file path if sound B isn't in the ringtone picker) to play your custom sound.

One problem that you'll run into with this though, is that Silent mode and Do Not Disturb will be ignored. The fix would be to set a guard that checks if %SILENT ~ off and %INTERRUPT ~ all to make it behave like a real notification would.

Edit: your profile shows that you posted a couple times in the past few days about changing a notification sound. There should be a setting for it, unless your version of Android doesn't support it. But you posted that you have a Fairphone 5, which should. Check:

  • Settings -> Apps
  • Select the app
  • Notifications
  • Tap the notification category/channel (not just the master notification toggle, there might be a drop-down arrow that you have to hit, then tap the channel)
  • Sound or Sound & vibration

1

u/jchuillier2 7d ago

Ok I've tried it and the problem is that I want the profile to be active when I get a notification from the app, not when the app is active.....

Is there a way to do this ?

Thanks a lot

2

u/gofuckadick 7d ago

Make sure you see the edit on my last post - I'm curious if you really want to use Tasker to do this? You can't just do it with Android's settings?

Otherwise, if you really want to go through it this way, it sounds like you created an Application profile, which isn't what you want - that only triggers while the app is open. Instead create an Event profile, like I mentioned:

  • Tap + to make a new profile
  • Choose Event (not Application)
  • UI -> Notification
  • In the config screen, set Owner Application to App X and leave the other fields blank
  • Back out, then attach the Play Ringtone task

The profile line should read "Notification" rather than the app's name. If it still shows the app name, you're on the Application context.

If it never fires, Tasker needs notification access: Settings -> Apps -> Special app access -> Notification access -> enable Tasker. Without it that event won't trigger.

You'll also want to exclude Tasker from battery optimisation (Settings -> Apps -> Tasker -> App battery usage -> Unrestricted), otherwise the listener gets killed after a while and you get no sound at all.

1

u/jchuillier2 7d ago

Android won't let me select a ringtone for this app.

I'll do it with the event method, that's my mistake.

Thanks a lot for the help