iTunes.isPlaying() only returns false even when music is playing

Hello,

 

I asked this in the noobie forum, but I couldn’t get a response. I thought maybe I would have more luck here.

 

I would like 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) and my build is v2015.2731. Could it be my device? Am I missing a step?

 

Here is my code.

post-489401-0-15532300-1446637728_thumb.

 

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

In the future, using the <> code option via the forum posting tools are the best way to include code that you would like evaluated.

Have you tried just using the vanilla sample from the docs to confirm that the issue is due to the device and not the code? Also, which iOS version do you have installed on this iPod?

In the future, using the <> code option via the forum posting tools are the best way to include code that you would like evaluated.

Have you tried just using the vanilla sample from the docs to confirm that the issue is due to the device and not the code? Also, which iOS version do you have installed on this iPod?