Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to display a red status bar when the home button is pressed?

How do I display a red status bar when the home button is pressed while my recoding app is doing some recording?

I checked this question: How to hide the red bar under the iOS's status when recording?

However, I use Core Audio and Extended Audio File Services to do recording. I am unable to find any proper documentation to programatically do this. Any help or pointers will be appreciated.

Red status bar

like image 962
Bijoy Thangaraj Avatar asked Jan 11 '13 07:01

Bijoy Thangaraj


1 Answers

I believe from saying

a red status bar when the home button is pressed

you are asking whether you can set the status bar color to red when your app in background.

The red status bar is an indication that an application is recording audio, and it is set by the system. There is nothing in sdk that supports us to change the status bar color when your application is in the background.

See this official forum thread (login required) where this question is addressed, and the guy who answeres it is an Apple employee.

EDIT :

If your app is trying to record in the background, but your problem is that red color is not visible on status bar, then one reason can be because your audio recording session is getting terminated/paused. Try and register for a completion handler for your recording, and see if it fires earlier than you expects it to fire.

like image 194
Krishnabhadra Avatar answered Nov 07 '22 02:11

Krishnabhadra