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
then in plist file add following key:
now play music in when timer sets off.
Comments
Post a Comment