How to hide status bar message when app is using background location services in iOS

1.7k views Asked by At

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.

2

There are 2 answers

2
Sahil Kapoor On BEST ANSWER

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

1
Pooja Maha On

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.