Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Something wrong with my iOS app's location service declaration

A few days ago when I uploaded a new version of my app to the App Store using Xcode, I received the following e-mail from iTunes Connect:

Subject: iTunes Connect: Your app AppName has one or more issues

Dear developer,

We have discovered one or more issues with your recent delivery for "AppName".

The following are for your information only and do not require any action:

We have detected that this build requires the use of standard location services when running in the background. Apps requiring location services will now display the following text disclaimer on the App Store. 'This app may use your location even when it isn’t open, which can decrease device battery life'.

Regards,

The App Store team

And the build that I uploaded cannot be selected for review submission on the iTunes Connect website.

How should I deal with this problem? Thanks.

like image 436
Standix Avatar asked Dec 27 '16 10:12

Standix


2 Answers

I run into this issue long time ago, this is because, if your app is still use location service in the background, it maybe consume the battery.

1) If you want to always use the location service, you should set this, can let you pass the itunes verify:

you should in your Info.plist add NSLocationAlwaysUsageDescription permission, and set the value, why you want to always use the location service.

enter image description here

2) If you just need when user using app this duration to use location service. You should NSLocationWhenInUseUsageDescription instead of NSLocationAlwaysUsageDescription permission, and you should also set the description why you want to use the permission.

like image 175
aircraft Avatar answered Oct 04 '22 00:10

aircraft


  • Apple guidelines * If your app requires location usage even in the background mode, In bottom of the app description and iTunesConnect application page you have to put this text

"This app may use your location even when it isn’t open, which can decrease device battery life"

It is important to put this disclaimer so that if user downloads your application he should be aware that location services will be active for the app even when the application is not in the use.

You don't have to put another build, just update the description with this disclaimer and submit for review again. It will get re-reviewed and, if all terms and conditions are valid, it will be approved.

Since Apple services for new application upload is not active from 23rd Dec to 27th Dec due to yearly Christmas holiday, so you should try to submit for review after it.

Let me know if you have any issues.

like image 38
Manish Pathak Avatar answered Oct 04 '22 01:10

Manish Pathak