- Home /
How do I prevent our application to ask for Camera Permission on Application start?
Our Application asks for the camera permission on iOS straight on application start. (it does not on android)
The application does use the camera - but we need to be able to control the request and ask for the permission when the device is needed as opposed to the start of the application.
Note: This is also required by the iOS Guideline for an application for the Kids Category: https://developer.apple.com/app-store/kids-apps/
When parents visit the Kids category, they expect the apps they find will provide only age-appropriate content and protect their children’s data, as well as require a parental gate in order to link out of the app, request permissions, or present purchasing opportunities.
So what could have caused it in the first place? For all I know, it shouldn't be the plist-string for the camera permission. We use ArKit/FaceTracking - Is it possibly already just the imports of the ArKit libraries? If not, how can I even begin to look for a cause?
See also my related SO post: https://stackoverflow.com/questions/63808316/request-camera-permission-on-ios-in-unity-at-runtime
Could you please tell me what ARKit plugin do you use? If you use AR Foundation, in my experience, starting from 3.1.3, camera permission will not be asked on app start.
We use Arkit.FaceTracking.
All imports that i found in the XR namespace in our project are: using UnityEngine.XR.ARKit; using UnityEngine.XR.ARFoundation; using UnityEngine.XR.ARSubsystems;
I checked again - it seems that we are using 2.1.8 of ArFoundation - we will try if an update fixes it.
Your answer
Follow this Question
Related Questions
ARkitRemote freezes after sending first frame 0 Answers
how to request location , camera permission during run time ? 0 Answers
ARCamera does not move with the phone 0 Answers
How to measure the distance between an Augmented Reality marker and camera? 0 Answers
How to open Device camera in full view in unity 3d. 1 Answer