I would like to know if there is a way to make your app show a status bar when the app is performing a specific function. Sort of like Shazam does when Auto Shazam is on, but this might be because the microphone and not something in Shazam's app code but I am wondering if there is a way to programmatically achieve this. Preferably in Swift but Obj-C also works.
Asked
Active
Viewed 672 times
1 Answers
2
This isn't done directly by the app, this is done by the OS when the app is using one of a few features in the background
The bar is red when an app is using the microphone in the background.
The bar is blue when an app is accessing location in the background.
The bar is also blue when a device is connected to the Personal Hotspot.
The bar is green when the telephone (including WhatsApp) is being used.
There may be more colours for other scenarios, but these are the ones I've come across.
I don't know of a way to add this bar on demand.

James Webster
- 31,873
- 11
- 70
- 114
-
How would apps like Messenger or WhatsApp signal that a user is in a "call"? – Kevin Furmanski Dec 06 '16 at 12:57
-
The bar also goes green for WhatsApp. I checked by calling my colleague. – James Webster Dec 06 '16 at 12:59
-
Oh I see so if my app signals that it's in a "call" I can get a green bar that shows during the function in my app that resembles a "call"? – Kevin Furmanski Dec 06 '16 at 13:00