Every few seconds (currently 10) the app sends a request to Tormented Radio to read the current track. After that, it makes a new request to a Firebase cloud function that retrieves further details about the song (album name, album art).
We should avoid calling the cloud function every time if the app already has data on the current song.
Every few seconds (currently 10) the app sends a request to Tormented Radio to read the current track. After that, it makes a new request to a Firebase cloud function that retrieves further details about the song (album name, album art). We should avoid calling the cloud function every time if the app already has data on the current song.