Fail to show "asking for permission" window in distribution version

Hi, I encountered a weird problem.

Apple just rejected my app, the reason they provided was “the app does not ask users for permission to enable location service.”

I tested the app again and found that “asking for permission” worked well when I used development provisioning file, but it didn’t work when I used distribution provisioning file, though all the setting were the same.

I have set the “NSLocationWhenInUseUsageDescription” field, but it only showed  when I used development provisioning file to build and test.

What should I do to solve this problem? Thanks.

Hi @calvinlinos,

To my knowledge, this is not a key that is commonly set. Is there a specific reason why you added it? Was it added before you submitted (and were rejected), or did you add it afterward and receive a second rejection?

Best regards,

Brent

Hi @calvinlinos,

A quick follow-up on this: I just remembered that this UI key is required with iOS 8.

We’re going to need more info to assist you. Which version of Corona? Which specific version of iOS? What Mac OS are you using?

Thanks,

Brent

I used build v2015.2505, target iOS 8 with OS X Yosemite

The following was my code in build.settings:

iphone = {

plist = {

            NSLocationWhenInUseUsageDescription = “Please allow location service to improve user experience”,

            UIBackgroundModes = {

                “location”,

            },

            UIRequiredDeviceCapabilities = {

                “location-services”,

                “gps”,

            },

            …

}

}

Today, I remove UIBackgroundModes = {“location”} and it works, though I still don’t know the reason.

I have included the following code:

[lua]UIRequiredDeviceCapabilities = {

    “location-services”,

    “gps”,

},[/lua]

 

However, when trying to submit to the app store, I receive a message saying that I cannot submit an app that will not work on all iOS devices. 

Hi @calvinlinos,

To my knowledge, this is not a key that is commonly set. Is there a specific reason why you added it? Was it added before you submitted (and were rejected), or did you add it afterward and receive a second rejection?

Best regards,

Brent

Hi @calvinlinos,

A quick follow-up on this: I just remembered that this UI key is required with iOS 8.

We’re going to need more info to assist you. Which version of Corona? Which specific version of iOS? What Mac OS are you using?

Thanks,

Brent

I used build v2015.2505, target iOS 8 with OS X Yosemite

The following was my code in build.settings:

iphone = {

plist = {

            NSLocationWhenInUseUsageDescription = “Please allow location service to improve user experience”,

            UIBackgroundModes = {

                “location”,

            },

            UIRequiredDeviceCapabilities = {

                “location-services”,

                “gps”,

            },

            …

}

}

Today, I remove UIBackgroundModes = {“location”} and it works, though I still don’t know the reason.

I have included the following code:

[lua]UIRequiredDeviceCapabilities = {

    “location-services”,

    “gps”,

},[/lua]

 

However, when trying to submit to the app store, I receive a message saying that I cannot submit an app that will not work on all iOS devices.