Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to show the play icon in the statusbar of my iPhone / iPad

I made an app which allows an audio file (http://site/file.mp3) to be played in the background.
This all works great. I only want an play icon to be visible like this statusbar See the 'play' icon in the top right.

I've googled my brains out and can't seem to find anything that explains how to achieve this.

Anyone?

like image 604
basvk Avatar asked Jan 29 '26 05:01

basvk


1 Answers

You might need this in your plist:

<key>UIBackgroundModes</key>
<array>
    <string>audio</string>
</array>

Other than that - it might be a part of linking your app to the iPod controls; which is answered here: iPhone ios4 - Replacing iPod dock icon whilst playing background audio stream

like image 195
Wex Avatar answered Jan 31 '26 20:01

Wex



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!