-
-
Notifications
You must be signed in to change notification settings - Fork 674
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Animated GIF Notification Not Working on Samsung (Android 14) #4939
Comments
Can you share the GIF in question? Also have you tried other sources? |
i am unable to reproduce using the following yaml on my pixel 9 pro xl
gif loads and is animated |
@dshokouhi That's interesting, copy-pasting that same config for me results in a still image (no animation). Probably not useful at this point, but the source for my gif is here: Tenor - Spongebob Dancing. |
gonna take a wild guess and say Samsung being Samsung? Wouldnt be the first nor last time. |
your example also works here:
|
@dshokouhi It certainly may be a Samsung issue with how they handle their notifications and frontend. I too have experienced the "fun" of their haphazard enabling and disabling of android features. But without any hard evidence, it's difficult to say one way or the other. Ex. if Samsung was "blocking" the video notification from playing, I would expect the companion app to receive some kind of pushback message from the OS, but I don't really see anything here in the logs. |
For what it's worth, I just had my brother send me a GIF to test if they work in other app notifications. GIFs are indeed animated and play within the notification window on my Galaxy S24 for the Google Messages app. |
Have you tried with Home Assistant + another gif, like this? Just to rule out any issues with the file. Don't see that combination in the comments.
I think you've missed the following: Still I do agree if there is pushback from the OS there'll probably be a message, but that would not show in the app log, only in the device log which is not accessible from the app itself. |
@jpelgrom Thanks for chiming in, and yes I tried referencing that GIF file as web URL and as a local file, but still no animation. Also, as far as the video attachments I think you are correct. I had initially read that sentence as videos greater than 10 seconds, not less than 10 seconds. So it would make sense for the video to only play one frame in this case. I tested with a longer video, and the notification is animated, so it appears only GIFs are the issue here. I was able to test the notification on my wife's Pixel 7, and the GIFs are animated on her phone. So I'd assume at this point my configuration for the notification on the server side is correct, and that this is just a client side issue with GIFs. My next step is going to be looking at the companion app logs on the Pixel to see if there are any noticable differences in the parameters being passed to the Like I mentioned previously, I get animated GIF notifications from Google Messages, so it's not like OneUI is blocking them outright. It's just the Home Assistant Companion App that doesn't. Fun Fact: Behavior on my Galaxy Watch 5 Pro is exactly the same. Google messages will display GIFs as animated on my watch, but the same GIF sent via Home Assistant noification will appear as a still image on my watch. |
Remember Google messages takes the file and displays it while the app downloads it and then loads it so the implementation is not the same for comparison sake but good to know it works in the other app. Also it won't work on the watch because the code does not exist there. |
Home Assistant Android app version(s):
24.12.1-full
Android version(s):
Android 14 / OneUI 6.1
Device model(s):
Samsung Galaxy S24 (SM-S921U1)
Home Assistant version:
2024.12.5
Last working Home Assistant release (if known):
N/A
Description of problem, include YAML if issue is related to notifications:
EDIT: Determined that animated Video type notifications are in fact working, as my initial test video was too short. GIF type notifications are the issue here. Thread title was updated to reflect this change.
I've been trying to setup an automation that sends a notification to an android device with an animated GIF or Video attachment using the Send Notfication via Mobile App method. When sent, both the GIF and MP4 formats of a file will only show the first frame, instead of playing as an animated GIF in the notification shade. Through my reading, it seems the animated GIF support is very new as of Android 14, but the video support should be well established. I've attempted to follow the Standard Attachments docs closely, and my configuration (of the GIF version) can be seen below. The video version simply replaces image: with video: and the .gif with .mp4 extension (I have both files stored locally):
I've tried stripping this down to the bare essentials (removing channel, notification_icon, clickAction, ect) with no luck. I also tried using the web URL of the GIF source without success. The GIF and the video both correctly play from the "Media Player" folder in the Home Assistant frontend, so I feel the file and it's format are "correct" here. It feels like the companion app isn't even attempting to play the media, instead falling back to a thumbnail or static configuration, but I'm just guessing here.
Companion App Logs:
GIF Notification Log
Video Notification Log
Screenshot or video of problem:
Additional information:
The text was updated successfully, but these errors were encountered: