Apple has rejected my application with the response below...
I already added the entry for "NSLocationAlwaysUsageDescription" and "NSLocationWhenInUseUsageDescription" in the info.plist file, but why did Apple reject it?
Your app uses background location services but does not clarify the purpose of its use in the location modal alert as required in the iOS Human Interface Guidelines.
We've attached screenshot(s) for your reference.
Next Steps
Please reconfigure the UIAlertControllerStyleAlert in your code and specify the intended purpose of using background location in its message field. Resources
For additional information and instructions on configuring and presenting an alert, see the Accessing User Data section of the iOS Human Interface Guidelines and the UIKit Framework Reference.