1

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.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
sachin gupta
  • 118
  • 1
  • 11
  • 1
    What do you have for the always usage description? – dan Jun 21 '16 at 15:17
  • 1
    What do you see in the attached screenshot(s)? – Arik Segal Jun 21 '16 at 15:19
  • you may want to show the screenshot at well? or at least show what you did type into you `info.plist` file? – holex Jun 21 '16 at 15:19
  • our app has the Beacons logic integrated which always search for user location – sachin gupta Jun 21 '16 at 15:20
  • Sure but it seems that you don't inform too clearly your intents on that to the user. You can't track users without stating it clearly. – Jean-Baptiste Yunès Jun 21 '16 at 15:22
  • @holex : values against the "NSLocationAlwaysUsageDescription" is "Would like to use your current location even in Background" "NSLocationWhenInUseUsageDescription" = "Would like to use Your Current Location When In use" – sachin gupta Jun 21 '16 at 15:26
  • That's why you got rejected. The description has to say what you are going to use the user's location for. – dan Jun 21 '16 at 15:28
  • Could you please mention dummy description here means how it should be look like ... and keeping both entries in plist file won't be any issue ? – sachin gupta Jun 21 '16 at 15:31
  • FYI : Last time apple did accepted this application with same description..don't know what happened this time to apple – sachin gupta Jun 21 '16 at 15:36
  • Maybe they actually looked at your description this time. It clearly conflicts with their guidelines, so change it! – luk2302 Jun 21 '16 at 15:45
  • @sachingupta, reading your messages, I think that is quite straightforward: _"...but __does not clarify the purpose of its use__ in the location modal alert as required in the iOS Human Interface Guidelines"_... – holex Jun 21 '16 at 16:16
  • Apple's message is completely clear. Change the description you present to your users. – davidf2281 Jun 21 '16 at 22:08
  • I have faced the same issue [Enter description for use of Background Location services](http://stackoverflow.com/a/26118453/4970453) – Varinder Singh iPhone Dev Jun 22 '16 at 04:50
  • App got approved after changing to appropriate description.... Thank you all – – sachin gupta Jun 22 '16 at 15:02

1 Answers1

9

NSLocationAlwaysUsageDescription is battery intensive. If not managed properly by the App, it can result in a bad user experience not only within the App, but also a bad user experience about using the iOS device in general.

Hence, Apple wants to know if you really need the location of the user even when the user is in the background.

Even our App received a rejection last week for the same reason.

We didn't even need to submit a new binary. All we did was explained to the reviewer why we were using the location background mode which we had listed in our plist. We did this by uploading a video in which we explained the purpose of the location background mode. And then provided a link of this video in the resolution centre in iTunes connect. The reviewer had a look at it and later approved our app.

So you have to do a similar thing. If you need the location services background mode. Just explain it's intended purpose to the reviewer in the resolution centre. Else, just upload a new binary with the location services background mode removed from the plist.

Hope it helps.

7vikram7
  • 2,764
  • 1
  • 25
  • 43