-
Notifications
You must be signed in to change notification settings - Fork 409
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
Notification Image Not Updating #964
Comments
Hi @Tr736, Thanks for reporting! For me, on Android 14, the issue was reproducible with the test controller app connecting with the demo session app. After the In fact, this The This is a bug that we should fix our side. I'm not sure if your app mostly uses We will provide a solution to this and update this issue. Thanks for reporting this bug! |
Populate both `artworkUri` and `artworkData` in `MediaMetadata.Builder.populate(MediaMetadata)` when at least one of them is non-null. Issue: #964 PiperOrigin-RevId: 600826103
Populate both `artworkUri` and `artworkData` in `MediaMetadata.Builder.populate(MediaMetadata)` when at least one of them is non-null. Issue: androidx/media#964 PiperOrigin-RevId: 600826103
Version
Media3 1.2.0
More version details
I am using a MediaLibrarySession and Controller.
Im wanting to update the lockscreen/notification image dynamically
This is the code I am using...
` fun updateNowPlayingMetadata(call: MethodCall, result: Result) {
val artworkUri = BundleUtils.parseMethodCall(call)?.getString("image")?.let { Uri.parse(it) }
Log.d("MediaController", "updateNowPlayingMetadata $artworkUri")
and in my PlaybackService: MediaLibraryService
// ============================================================ // updateNotification fun updateNotification(){ Log.d("PlaybackService", "updateNotification ") onUpdateNotification(Settings.session!!, false) }
If I set the title during the update, the title changes, but the image remains the same. I've confirmed multiple times that the imageURL is changing to what I expect, but the issue is that the images don't change.
Devices that reproduce the issue
Pixel 5
Devices that do not reproduce the issue
No response
Reproducible in the demo app?
Yes
Reproduction steps
Play a library item and notice the original image in the Lock Screen
Update the image
Notice the Lock Screen image dosnt change
Expected result
Lockscreen/ Notification Image should change
Actual result
Lockscreen / notification image remains as the initial image
Media
you can do this with any two image urls during playback
Bug Report
adb bugreport
to android-media-github@google.com after filing this issue.The text was updated successfully, but these errors were encountered: