• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Help No notification sounds on the phone when connected to bluetooth in Android 9.0 Pie

I'm very new to Tasker, only know about using i it because of this page.

1. connected devices Timeout (Seconds):10
I had to change this to 12 for it to work consistently, otherwise it was hit or miss.

2. Stream:2
Where are you streaming it to? I have mine set to Ringer

3. If [ %btdevname() ~R LG ]
This was the thing that prevented me from getting it working for days. Did you change the name of the bluetooth device? If so put in part of the original name, wildcards (LG*) are ok from what my searches have told me, or put in the whole of the original name. In my case it was SoundBuds Life. I had renamed it to Anker Headphones and it would not work.

Hope this helps.

Matt

Thanks for your help. I did all this and it will test OK, but doesn't trigger on received text. I understand Tasker so I'm thinking it may be my phone.
 
Third update: If you have multiple bluetooth devices paired to your phone, When using the %btdevname() variable, you should be %btdevname() with a colon ":" between the parentheses. (The board keeps putting a smily face in there when I try to write the code out!) This puts all the devices into the array.

I'm currently working on a Tasker task that will use AutoNotification instead since it is developed by the same guy who maintains Tasker. I'll post my Profile and Task once I get it working.




Second update: Scratch what I wrote below. I am now using the native Tasker "Bluetooth Info" task with the Type "Paired Devices". It appears to be working now.



Original Post: Okay, I am very familiar with Tasker, but not so much with Blue Task. (I think this might be an issue with Blue Task). I have an LG G7 ThinQ with Android 9 (Pie). When I run that "Get connected devices" task, and flash %btdevname, it returns nothing. the variable %btdevname is empty. Any ideas?
 
Last edited:
To use this profile, you will need AutoNotification and Tasker.

I have uploaded the xml of the Profile I created. I'm not going to get into how to import the profile, there are several sites out there that will walk you through doing that.

1.) Edit the Event Action and in the App section select the apps you want to be notified of while connected to a bluetooth device.
2.) Add, change, or remove, the Variable Set tasks (and the variable names) at task steps 2 and 3. (I have my Galaxy Wear Watch and my CPAP connected to my phone and it was always doing the ringtone I selected.) This sets things up so you can remove them from the array.
3.) INSERT a flash message after the task step that sets the variable %btdevlist to %bt_name(#?%watch) (remember to change the variable to the name you selected in step 2 above) and set it to %btdevlist. Watch the bottom of your screen when you run the task and you will see a number flash and remember the number!
5.) Repeat step 3 above for the NEXT Variable Set of %btdevlist. In the unaltered task list, it is task step number 6 and is being set to %btdevlist(#?%cpap). Changing the name of the %cpap variable to what you did in step 2 above.
6.) Replace the Position number in the Array Pop task steps with the number you got. There are two that must have the same number, make sure you change them both to the number you got in step 3 above. These task steps remove the offending bluetooth device from the array.
7.) In the Music Play task step, select your notification file and select the bluetooth device names you want to have this notification run on. Leave the "true" items alone.

That should get you working! Plus AutoNotification is supported and actively being developed by the maintainer of Tasker.
 

Attachments

I just found a slightly simpler work around that has been working for me so far using just MacroDroid but I imagine it can be implemented with any macro/scripting app. The basic concept is this:

- Trigger on Notification recieved from any app
- Actions:
1. disconnect bluetooth device - specify bluetooth device
2. Wait 1 second
3. connect bluetooth device - specify bluetooth device
- Constraints/conditions:
AND(
Bluetooth connected - specific device
NOT( Applications netflix, music, mediaplayer in foreground)
Music NOT playing
)

This is relatively simple and has been working for a few days so far. The constraints are to prevent typical apps that I use my bluetooth headset to listen to audio from being disconnected. My logic here is if any of these apps are running in foreground, and my bluetooth headset is connected, then I probably have them in and I don't want this to trigger. If I'm not listening to music or running any of these apps, then my headset is likely hanging on my neck so having them disconnect for a second won't matter. MacroDroid is totally free for up to 5 macros. The other benefit of this solution is that my notification sounds that I've selected for different apps and different contacts are all maintained and volume that is used is the notification volume which is exactly what I want.
 
Third update: If you have multiple bluetooth devices paired to your phone, When using the %btdevname() variable, you should be %btdevname() with a colon ":" between the parentheses. (The board keeps putting a smily face in there when I try to write the code out!) This puts all the devices into the array.

I'm currently working on a Tasker task that will use AutoNotification instead since it is developed by the same guy who maintains Tasker. I'll post my Profile and Task once I get it working.




Second update: Scratch what I wrote below. I am now using the native Tasker "Bluetooth Info" task with the Type "Paired Devices". It appears to be working now.



Original Post: Okay, I am very familiar with Tasker, but not so much with Blue Task. (I think this might be an issue with Blue Task). I have an LG G7 ThinQ with Android 9 (Pie). When I run that "Get connected devices" task, and flash %btdevname, it returns nothing. the variable %btdevname is empty. Any ideas?

So I have this working except where I really want it to. I can't get the task to run when my phone is connected to my Prius. Works fine with ear buds.
I'm having difficulty finding what name the Prius is reporting to the phone. I can' get the flash notification to display a device name but I fear I'm just missing something here. Any help is appreciated. Thanks!

EDIT: Nevermind. I used a popup instead of flash since that wasn't working on my phone.
 
Last edited:
I can' get the flash notification to display a device name but I fear I'm just missing something here. Any help is appreciated. Thanks!

Use the FLASH command to flash the entire BT list. I put it in position 2. The command is FLASH with the text:
Code:
%bt_name(:)

This will flash the entire BT list. It disappears fairly quickly so you might have to run it several times before you find what position the car is located in. I use the same flash command a number of times to make sure the BT devices that I want excluded are really excluded.
 
Sorry to revive old thread, I was facing the same issue, I could hear calls through BT connected radio, but not notification. I found an easier way to do this without any other plugin.

  1. Open Tasker and create new profile. I named it BT Notify.
  2. After naming profile, choose State > Net > BT Connected. Leave options blank.
  3. Now add new task. name it or not.
  4. Add new action Media > Play Ringtone. Set type to Notification and Stream to Ringer.
  5. Go back to main screen in profiles, long press on the BT connected State and select add
  6. Select Phone > Received Text and set type to any.
Now your phone should play notifications through the phones speaker when connected to BT.
 
Sorry to revive old thread, I was facing the same issue, I could hear calls through BT connected radio, but not notification. I found an easier way to do this without any other plugin.

  1. Open Tasker and create new profile. I named it BT Notify.
  2. After naming profile, choose State > Net > BT Connected. Leave options blank.
  3. Now add new task. name it or not.
  4. Add new action Media > Play Ringtone. Set type to Notification and Stream to Ringer.
  5. Go back to main screen in profiles, long press on the BT connected State and select add
  6. Select Phone > Received Text and set type to any.
Now your phone should play notifications through the phones speaker when connected to BT.
Thanx for the tip. When I get to #6, the option to select "Phone" does not exist. Could it be possible that you omitted a step?

Thanx again.
 
what a F*CK UP SHEEEET they made with Android 10 !!!!


for those desperate like me, I found an easier FREE solution that works on full sound like it's supposed to like before, both on the phone's speakers and the Bluetooth headset:
HERE

Download Sound Assistant app from Play Store or Samsung App Store.
Go to Advanced Settings> Alert through headphones then your done. All the notifications will be played through the phone speaker AND Bluetooth headset.

It took me 2,5 hours of searching and trials.

Risking of LOSING your job because they f*ed up the settings
in the new Android 10 "update" (read "DOWNGRADE motherf*cker!!!!" ) is NOT OK!
 
Back
Top Bottom