3

How to add message to status bar when I using geolocations. Like the image below

enter image description here

iphonic
  • 12,615
  • 7
  • 60
  • 107

1 Answers1

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.

Community
  • 1
  • 1
Nhat Dinh
  • 3,378
  • 4
  • 35
  • 51