Integrating your service favorites with Sonos

This page is no longer updated.

See Add favorites on the Sonos developer portal for the latest documentation.

Synchronizing your favorites

Update your favorites to stay synchronized. Sonos periodically sends a getLastUpdate request to check for changes. If changes have occurred for favorites, be sure to update the <favorites> value before you send the getLastUpdate response. When the Sonos app recognizes that the <favorites> value has changed, it will send a new getMetadata request to get the new container content.

Similarly, if a listener updates their favorites using another method such as your music app, be sure to update the <favorites> value. Then when the Sonos app sends getLastUpdate requests, your service responds with the new <favorites> value so that Sonos will know to send a getMetadata request to display the changes to the listener.