Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 594
K_Mohit Avatar asked Dec 25 '22 18:12

K_Mohit


2 Answers

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

like image 141
Sahil Kapoor Avatar answered May 11 '23 05:05

Sahil Kapoor


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.

like image 23
Pooja Maha Avatar answered May 11 '23 05:05

Pooja Maha