Wake watchOS companion app when playing music from iPhone

Hello!

I've been trying for the past week to find a way to wake the watchOS app when playing songs from the iPhone app.

I see that Spotify manages to do it, I implemented the Spotify SDK and when I play a song, the Spotify watchOS app starts automatically with the current song playing.

How can I do the same for my app, and how can I override the mechanism for Spotify, so that even if I start the song by playing on the Spotify SDK, my app responds, and not the Spotify one?

I have tried using the "NowPlayingView" but it does not work properly, as the Spotify one becomes active, not my app.

Thanks!
Edit: from what I could gather from the scarce documentation, this is what I should be using handleremotenowplayingactivity

However, this is not getting called on my watch. Any idea why?

Wake watchOS companion app when playing music from iPhone
 
 
Q