Can't remove previous permissions

Hi everyone,

I’m having a problem with iOS permissions. I was trying to take photos and use them in our game but we decided to postpone that feature. So, I removed the related code and tried building the game again but the permissions for Camera and Photos stay where they are in the Settings. What can I do to remove those permissions from my build?

I’ve tried those and didn’t work:

  • Get another build with different app name

  • Comment out / delete the related code

  • Get another build with same package name but different profile

By the way, I tried building with another app’s profile and it removed the permissions.

Thank you in advance.

You answered your own question … you need a new provisioning profile.  Specifically you need to change the “App Id” as that’s what’s used as the key to the app’s settings.  

Actually, new provisioning profile didn’t work as I said above so I was curious if there is a way to do it without changing the package name. Maybe that’s device specific?

I don’t believe there is a programmatic way to do this. The user can delete the app, reboot the device and when they will reinstall it, it should prompt again.

Rob

I don’t have a problem with prompting for permissions but I have a problem with permissions carrying over even though I have already removed the function that requires this permission.

Maybe, if there is an answer to “is Apple carrying over those permissions with the package name or the new user won’t see those permissions with the updated code”, that may solve it for me.

You answered your own question … you need a new provisioning profile.  Specifically you need to change the “App Id” as that’s what’s used as the key to the app’s settings.  

Actually, new provisioning profile didn’t work as I said above so I was curious if there is a way to do it without changing the package name. Maybe that’s device specific?

I don’t believe there is a programmatic way to do this. The user can delete the app, reboot the device and when they will reinstall it, it should prompt again.

Rob

I don’t have a problem with prompting for permissions but I have a problem with permissions carrying over even though I have already removed the function that requires this permission.

Maybe, if there is an answer to “is Apple carrying over those permissions with the package name or the new user won’t see those permissions with the updated code”, that may solve it for me.