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

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -