4

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.

K_Mohit
  • 428
  • 2
  • 17
  • 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 Answers2

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.

See this answer

CopsOnRoad
  • 109,635
  • 30
  • 367
  • 257
Sahil Kapoor
  • 10,322
  • 10
  • 57
  • 82
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
  • 5