I want to hide message that appears on status bar in blue colour on iOS devices, when i minimise my app using location services in background mode.
Asked
Active
Viewed 1,767 times
4
-
http://stackoverflow.com/questions/17174042/ios-corelocation-and-geofencing-while-app-is-closed/17174344#17174344 – Reming Hsu Jun 11 '15 at 10:06
-
This may help you http://stackoverflow.com/questions/19063365/how-to-change-the-status-bar-background-color-and-text-color-on-ios-7 – App Dev Guy Jun 11 '15 at 11:06
-
SASmith , i don't want to change the status bar colour. My problem is When my app uses location services in background mode and if i minimise my app, then status bar highlights with blue colour bar just like when you create Hotspot or minimise a phone call. – K_Mohit Jun 11 '15 at 12:03
2 Answers
6
You can use requestAlwaysAuthorization
instead of requestWhenInUseAuthorization
on CLLocationManager
(and provide the related NSLocationAlwaysUsageDescription
in the info.plist file)
, and then it will not appear either.

CopsOnRoad
- 237,138
- 77
- 654
- 440

Sahil Kapoor
- 11,183
- 13
- 64
- 87
4
It is not possible as Apple reminds user that the respective application using his location in background mode. It concerns with privacy policy by apple.

Pooja Maha
- 81
- 1
- 6
-
1True only when when using requestWhenInUseAuthorization. requestAlwaysAuthorization doesn't show the bar. – Sahil Kapoor Jun 11 '15 at 12:54