ios - Start playing MPMusicPlayerController when app is in background -


is possible start playing 'mpmusicplayercontroller' when app in background state? have alarm clock app , start playing music when alarm goes off , app isn't in foreground.

go project properties -> capabilities , switch on application background modes

enter image description here

then in plist file add following key:

enter image description here

now play music in when timer sets off.


Comments

Popular posts from this blog

css - I want to align grid in center -

python - SWIG function not printing output -

oop - Function for all prototypes - Javascript -