iTunes plugin problem

Hello,

I want the bgm in my app to stop/not start playing when iTunes is playing music. I am trying to use iTunes.isPlaying() from the iTunes plugin to set up a flag so that my app knows when not to play music. 

However, even if music playing on iTunes, iTunes.isPlaying() only returns false. 

The device I am using is an iPod touch (6th generation). Could it be my device? Am I missing a step?

Here is my code.

If anyone has an idea of what is wrong, I’d be very grateful to hear from you. Thank you.