app got rejected because the app does not request the user’s permission to upload their photos.

Hi all,


My app got rejected and the reason I got was :-


"We noticed that your app requests the user’s consent to access their photos but does not clarify the use of this feature in the permission modal alert.

Specifically, when the user adds a profile photo, the app does not request the user’s permission to upload their photos"

As per this WWDC video, https://developer.apple.com/videos/play/wwdc2017/505/

if I am using UIImagePickerController and fetching from photo library, then the permission alert does not come in ios 11. My app does show the alert on an ios 10 simulator. It's only in ios 11 that the permission alert does not come as has been explained in the video.


Can anyone help me on what am I missing? And what are the next steps I should take ?

Are you testing your app on actual devices running iOS 11? You can't rely on the simulator to produce accurate results for many API.

The permission messages tend to be a mixed bag, with the old style permission messages being property entries in the app's plist and the new style ppermission messages being parameters pointing to strings that you should probably ensure are class variables or otherwise not temporary.


If you have a paid developer membership, the simplst thing to do may be to file a DTS ticket. That gets around the whole issue of needing to share code to see what's going on that limits the sort of suggestions that can be made in a case like this.


But my concern would be that if you're testing on the iOS 10 simulator and iOS 11, then you probably have to support both ways:

  • The pre-iOS 11 method where you present the monolithic request for access.
  • The new iOS 11-specific narrow access request messages

I tested on an actual device for ios 10 and got the alert for permission when I tried to access the photo library. I also tested on a device running ios 11 and did not get any alert when I tried to access the photo library.


I have just added nsphotolibraryusagedescription to the info.plist.


The WWDC video I had shared on the question mentions that when we use UIIMagePickerController on ios 11, it does not show the permission modal when we try to access the photo library.


But then my app was rejected and I wish to understand the reason.

app got rejected because the app does not request the user’s permission to upload their photos.
 
 
Q