|
Post by jeddix on Nov 5, 2018 11:33:45 GMT -5
Today I got the update to 2.2.13 and according to the changelog there was a fix for widgets on Android 8.0 and above. Well, on my phone this had the opposite effect. I'm running GoneMad on a Note9 with Android 8.1 and when I don't listen to music for a certain time and then start listening again the widget will not update anymore. My wild guess is that the widget update service is not started anymore if it is not running. I can only get an updating widget back if I add another GoneMad widget. After that my main widget will also update. But that only works until the service shuts down again.
I have all battery optimizations disabled for the player (and it was working before without any problems).
For the time being I'll revert back to 2.2.11.
|
|
|
Post by GoneMAD on Nov 5, 2018 12:20:02 GMT -5
the widget service doesnt run in general on 8.0+ due to the background limitations forced in oreo (which i had to update to comply with google play policies). I had to do a massive hack just to get the widget working, so the code that does widget updating should always stay running (its passive so it does nothing besides respond to events). In the cases where you are getting the issue of it not update.. are you resuming playback via the widget or the actual gmmp ui? Does the widget still respond to the button presses.. just not update whats playing?
Regarding the changelog, 2.2.12 completely broke the widgets but it never made it out of beta.. which is what the fixes 2.2.13 was referring to
|
|
|
Post by jeddix on Nov 5, 2018 12:39:40 GMT -5
I can interact with the widget without a problem, it's just not updating. It won't update the current track nor the state of the play/pause button. Normally I hit play on the widget or stick the headphones into the phone. I didn't use the buttons in the UI today.
|
|
|
Post by GoneMAD on Nov 5, 2018 12:54:20 GMT -5
okay thanks
|
|
|
Post by jeddix on Nov 5, 2018 14:03:22 GMT -5
I just saw that you have a subreddit. Can I post this on reddit as it's way easier for me to follow this topic there than in this forum?
|
|
|
Post by GoneMAD on Nov 5, 2018 15:41:12 GMT -5
yup thats fine
|
|
|
Post by jeddix on Nov 5, 2018 16:57:35 GMT -5
https://www.reddit.com/r/gonemadmusicplayer/comments/9ui1yn/2213_widget_update_is_broken/
In case anyone else is reading this here.
|
|