2

I'm creating an app which using the AVAudioRecorder to record voices, when it goes background, a red bar shown on system status bar. I want to show the recording elapsed time on it, like the voice memo. Is it possible, and how?

Thanks.

wershest
  • 23
  • 6
  • I have read http://stackoverflow.com/questions/12643837/custom-text-on-recording-red-status-bar, I don't know whether there is a difference between VoIP and AVAudioRecorder. – wershest Aug 01 '16 at 09:39
  • I don't believe this is possible, but I can't find anything to back that up. Apple definitely doesn't provide any way to provide completely custom text, and I doubt they provide a way to enable the "elapsed time", either. – Cocoatype Aug 01 '16 at 09:41

1 Answers1

2

It is not possible because that will use some private api only to apple. The red bar is shown by iOS to indicate there is an app in the background using audio resource, set in UIBackgroundModes in your info.plist, mostly audio or voip.

Because it is shown by iOS you can not modify it.

Qiulang
  • 10,295
  • 11
  • 80
  • 129