How to add message to status bar when I using geolocations. Like the image below
Asked
Active
Viewed 291 times
1 Answers
1
As @Quentin Hayot described here
This banner is displayed by iOS itself in the following situations:
- A background app is tracking your position (after a startUpdatingLocation)
- A background app is using your microphone
- A background app is performing a VOIP call
The banner color changes with the reason. There is no way to force iOS to display those banners but by using one of the relevant background modes.
If your app does not tracking position, using microphone or performing a VOIP call, you will not able to display that bar.
-
Ok, thanks... I used locations, but its not work. Problem was in method requestAlwaysAuthrization() I change to requestWhenInUseAuthorization() and status bar show message – Никита Спирьянов Feb 02 '17 at 10:13