How to clarify the purpose of its use in the place of modality?

in my application, I show the location of the user on the map. So, I implemented CLLocationManager . I got the error below with Binary Rejected.

 4.5 - Apps using background location services must provide a reason that clarifies the purpose of the use, using mechanisms described in the Human Interface Guidelines 

4.5 Details

Your application uses background location services, but does not specify the purpose of its use in modal location alerts, as required in the iOS Interface Guide.

Attached screenshots of Weve for your reference.

Next steps

Please reconfigure UIAlertControllerStyleAlert in your code and specify the purpose of using the background location in your message field.

+7
ios app-store cllocationmanager
source share
1 answer

You need to write a description using NSLocationWhenInUseUsageDescription and NSLocationAlwaysUsageDescription this key in NSLocationAlwaysUsageDescription so that the user knows why your application uses the gps location. Both keys take a string as a value. and this line appears in the GPS permission warning.

Add info.plist as shown below.

enter image description here

+12
source share

All Articles