Silent notification when using channel: alarm_stream on Samsung devices
See original GitHub issueHome Assistant Android version: 3.0.0-full Android version: 10 Phone model: Samsung Galaxy S20 Home Assistant version: 0.116.2 Last working Home Assistant release (if known):
Description of problem: I Try to use the alarm_stream in a notification. I want to use Home Assistant to find my phone if i loose it. It uses the alarm sound but if the phone is in silent mode it receives the notification silent. Did I misunderstood the docs?
action:
- service: notify.mobile_app_m***
data:
title: "Title"
message: "Message here"
data:
ttl: 0
priority: high
channel: alarm_stream
Using this works if the phone is in slient mode
action:
- service: notify.mobile_app_m***
data:
title: "Find me. RRRRRRRRRRRR. TTTTTTTTTT. Here I am!"
message: TTS
data:
ttl: 0
priority: high
channel: alarm_stream_max
Traceback (if applicable):
Screenshot of problem:
Additional information:
Issue Analytics
- State:
- Created 3 years ago
- Comments:25 (12 by maintainers)
Top Results From Across the Web
How to set an Android app's notifications to silent
By default, most notifications will arrive with a sound and/or ... Let's take a look at how to silence notifications on your Galaxy...
Read more >Aggressive Notification with Sound on Android not working?
However, only a push notification appears and no real alarm. I want my phone to ring aggressively even in silent mode. service: notify....
Read more >Control app notifications on your Galaxy phone or tablet
Navigate to and open Settings, and then tap Notifications. · Tap Advanced settings, and then tap the switch next to Show snooze button....
Read more >Audible notifications using alarm stream when ring volume is ...
I have an existing app that was able to produce an audible notification sound even when the device had its ring volume silenced...
Read more >Control notifications on Android - Google Help
Depending what notifications you want, you can change settings for certain apps or for your whole phone. Notifications show when you swipe down...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Re-opening as there is one thing to try that I found in a stack overflow post. It did not specifically call out Samsung but it did mention some additional alarm attributes that continue to work on my device so hopefully this is what other manufacturers are expecting. No promises so if you are able to get ADB logs would be good to get them too.
My other suspicion is that its possible that samsung is just returning a blank URI for the alarm however I would expect to see a crash report if that were the case.
@dshokouhi I am using Android Studio (verbose mode, no filters). If the app is in background there is no trace of similar strings in my logs, the notification is shown correctly, but without sound.
If the app is in foreground, the notification message is empty (there is just the icon without text, is it another bug?) and still no sound. In this case, the log is:
Edit: it looks like there is no data payload in the notification; looking at https://firebase.google.com/docs/cloud-messaging/android/receive#handling_messages, in background the notification is delivered directly to the device’s system tray because there is no payload, and in foreground the log show empty payload.