|
Post by patrick on Feb 9, 2022 7:16:57 GMT -5
Hello, since switching to a Galaxy S20 FE and Android 12, the notification does not update correctly anymore when switching songs (manually or on next track). Sometimes it's just stuck on the last Track, sometimes it does update the Album Art but not the rest, sometimes it works correctly (but mostly doesn't). It shows the correct Tags etc. Within the notification when I go into GMMP and press pause and play again. Some more info: - Only GMMP Unlocker is in Samsung Battery optimizations - Tryed to exclude normal GMMP from battery optimization completely, that didn't change anything Any idea or fix? Best greets
|
|
|
Post by GoneMAD on Feb 9, 2022 9:33:16 GMT -5
the issue has to be on samsungs side. The notification updating is trivial on gmmp's end and its definitely not a think specific to android 12 since my pixel 4a has been on 12 since it came out with no issue on the notifications
I think my wife has a regular s20, if thats updated to android 12 i can give it a try to see if i can recreate anything
|
|
|
Post by patrick on Feb 9, 2022 10:56:04 GMT -5
the issue has to be on samsungs side. The notification updating is trivial on gmmp's end and its definitely not a think specific to android 12 since my pixel 4a has been on 12 since it came out with no issue on the notifications I think my wife has a regular s20, if thats updated to android 12 i can give it a try to see if i can recreate anything If you need logs or anything else let me know.
|
|
|
Post by GoneMAD on Feb 9, 2022 11:48:41 GMT -5
you can certainly generate a logcat right after a track change and you see a stale notification (also make sure you dont have multiple notifications for GMMP.. the android 11+ media controls can create multiple for an app depending on if your OS version has the fix or not) gonemadmusicplayer.blogspot.com/2014/07/how-to-get-logcat-system-log-to-help.htmlIm not sure what the logs would show in this case but i can certainly look.
|
|
|
Post by patrick on Feb 11, 2022 9:59:07 GMT -5
I've send you the log to <gonemadsoftware@gmail.com> Hope this is still correct. Thanks for looking into it It ocurred on the last track change to the previous track. I also logged when I pressed pause, that updated the notification correctly. I only have one GMMP notification as it should be.
|
|
|
Post by GoneMAD on Feb 11, 2022 10:23:48 GMT -5
manual or automatic track change?
|
|
|
Post by patrick on Feb 12, 2022 8:15:55 GMT -5
Manual Track change from within the notification.
Automatic would be too much luck to get it logged. But if you need I can try to catch one
|
|
|
Post by GoneMAD on Feb 21, 2022 21:25:09 GMT -5
i think i actually figured this out. Essentially 2 metadata change updates get triggered back to back, old track then new track, but the update runs in parallel so its a race condition. If the old track update finishes after the new track it shows outdated information. There was a previous bug like that regarding playstate that i basically just forced another update 1 second after the track change. I should be able to make it so the updates happen serially to prevent this from happening
|
|
|
Post by bwaldron on Mar 10, 2022 8:57:59 GMT -5
Glad you're looking into this. It's been driving me a bit nuts since my Samsung S10e updated to Android 12.
|
|
|
Post by GoneMAD on Mar 14, 2022 8:51:03 GMT -5
to be clear i've fixed an issue where the notifications are out of sync (notification shows the previously played track until you hit the play/pause button). If the notifications stop updating completely.. thats likely an issue on the android side
|
|
|
Post by patrick on Mar 14, 2022 9:44:32 GMT -5
to be clear i've fixed an issue where the notifications are out of sync (notification shows the previously played track until you hit the play/pause button). If the notifications stop updating completely.. thats likely an issue on the android side As I mentioned in the other thread this still doesn't fix the Problem on my side. It's the same behavior, every now and then the tags/cover gets stuck on a track change (even displaying play/pause state is stuck sometime). Everytime I press play/pause within the notification or in the app everything gets correctly updated though.
|
|
|
Post by GoneMAD on Mar 14, 2022 10:26:12 GMT -5
k.. well no idea then since my code sends the updates in the correct order now. I"ll just sent a refresh 1 second after the track change like is currently done for playback progress and that should cover it.
|
|
|
Post by patrick on Mar 14, 2022 16:44:26 GMT -5
k.. well no idea then since my code sends the updates in the correct order now. I"ll just sent a refresh 1 second after the track change like is currently done for playback progress and that should cover it. Would another logcat help anything? Otherwise I'd reach out to the Samsung support, as this seems to be problem only on Samsung devices
|
|
|
Post by GoneMAD on Mar 14, 2022 17:00:38 GMT -5
yea i guess you can send one more.. the last one really only helped me identify that it was a diff portion of the code that updates android 11+ notifications vs gmmp's actual notification code. i guess i can see if anything else stands out
|
|
|
Post by GoneMAD on Mar 14, 2022 20:17:29 GMT -5
" (even displaying play/pause state is stuck sometime)."
yea certainly seems like there is a bug on the samsung side cuz in gmmp not only is this update on track change.. its updated again 1 second after the track change (1 second is an eternity in software time)
edit: im going to include a metadata refresh at that 1 second mark as well.. so hopefully thats a good enough work around
|
|