Creating an Apple Watch Music Remote App

285 views Asked by At

I'm trying to create a music remote companion app on Apple Watch.

According to Apple's documentation if you're using MPNowPlayingInfoCenter to show the now playing track on the lockscreen this should be synchronizing automatically to the apple watch app and showing the data in the glance screen on it's own.

1) I'm unable to test this on the apple watch simulator, the app just shows the default glance screen from the storyboard, I tried deleting the Glance Controller from the storyboard, it ended up showing the Watch App Controller instead.

2) I'm trying to retrieve the now playing data in the Watch App Controller using [MPNowPlayingInfoCenter defaultCenter].nowPlayingInfo but it just returns nil.

The reason I'm trying to rely on MPNowPlayingInfoCenter is to avoid progress indicator syncronization issues that I would be facing when using regular app to watch interaction methods.

0

There are 0 answers