'iOS app does not ask camera and microphone permissions on TestFlight?

I've an issue that is unusual. When I test my app with XCode evertything is working on my iphone and the other iphones, the app asks to user for all permissions. But when I added my app to TestFlight, the app does not ask camera and microphone permissions to user? "Privacy - Camera Usage Description" and "Privacy - Photo Library Usage Description" keys are already added to info.plist file. The app behaves different on TestFlight, how can it be?



Solution 1:[1]

If the user has previously denied the use of the camera, then the status will be AVAuthorizationStatusDenied and the dialog will not be displayed when asking for permissions.

Solution 2:[2]

Actually, we faced with the similar issue recently. In our case, the solution was related to signing.

If you're checked the automatically manage signing box in Xcode, you can try this to fix this issue:

  1. Create 'Distribution' certificate on Apple Developer Console.
  2. Create 'App Store' provisioning profile by selecting the created certificate in Step 1.
  3. Download certificate and add to your keychain.
  4. In Xcode update the release signing part with this newly created provisioning profile and certificate.

By these steps we fixed our permission issue in TestFlight. I hope this post will help someone in someday.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Roman Solodyashkin
Solution 2 elos