How to get info of what user listens currently in

2019-03-03 04:07发布

问题:

Can an Android app (runs on background and uses Spotify SDK) get info of which track the user listens currently at exact time in Spotify Android app?

回答1:

I think you'd be interested in the Android Media Notifications.

If you are developing an Android application and want to know what is happening in the Spotify app, you can subscribe to broadcast notifications from it.