I implemented Push notifications in iOS. I want my application to play a music (about 15sec) when I send a push message. I am currently getting the push message, and the music is being played only if the app is in the foreground. If the app is in the background, it shows up a notification, and when i tap it, it then plays the music.
但是,我如何自动发挥音乐的作用? 我认为,之所以能够做到这一点,是因为在西里,视听镜子可以在背景下运行。 因此,我只想让音乐在观看背景时起作用,并且得到推动。
Can anyone help me with this please?
Thanks, Nithin