Hi,
Nice article you have written here..
Really enjoyed reading it, from the very specific problem and use case explained, to the solution.
It is true that nowadays, most music player apps delegate scrobbling to scrobbler apps and these
app do it reading the media notification.
At some point BubbleUPnP was able to scrobble directly to a few scrobble apps sending them a specific Intent, thus not needing them
to read the media notification, but I removed it.
BubbleUPnP also still send the com.android.music.metachanged broadcast intent that may still be used by some scrobble apps, not needing notification access either.
It has been a long time I have not tried it so do not know if it still works (with some scrobble apps at least).
The Last.fm app may support it.
To get back on OneDrive, normally the credentials should be automatically refreshed on failure but apparently they don't, or not always.
I will try to reproduce it on my system but no promise that I will be able to.
It is unfortunate that OneDrive requires that refresh so often. Access tokens are valid for a much longer time with other services.