Black Screen and no camera permission
Hi i tried arfoundation 1 month ago and it worked just 1 time. But since than i try different time with different version of unity, but the app do not ask me the camera permission and i not show me the camera background no error on debug...
i tried to allow permission in app setting but nothing change, any idea why it appen?
If your bundle identifier is the same, then you won't get prompted for camera permission after granting it the first time.
Things to try:
- If on Android, could you check the logcat output
adb logcat Unity:* Unity-ARCore:* ArPresto:* *:S
- Try
Debug.LogFormating theARSubsystemManager.systemState(this would tell you if, for example, the device is unsupported).
What device are you using?
I am using a Galaxy A6, and arcore works fine.
i not understend wy but with unity 2018.1.1. now seems work
This is difficult to diagnose without any other information. Is there any logcat output (using the command I mentioned in my previous post)?
It would also be helpful to submit a bug with a project that reproduces the issue.
@tdmowrer the project is exactly the arfoundation-samples, i just download it and opened with different version of unity, switced platform and build it on my phones
@tdmowrer the project is exactly the arfoundation-samples, i just download it and opened with different version of unity, switced platform and build it on my phones
Do you found the problem? I have now the same after building my app there is no camera permission pop-up and the screen is black
Same issue, here's what I get when running the logcat command
09-18 13:04:46.872 10025 10046 I ArPresto: ArPresto_initialize 09-18 13:04:47.016 10025 10046 I ArPresto: ArPresto_setCameraTextureName 09-18 13:04:49.813 10025 10046 I ArPresto: ArPresto_setEnabled 09-18 13:04:49.822 10025 10046 I ArPresto: ArPresto::Got install result. 09-18 13:04:49.851 10025 10046 I ArPresto: ArPresto::Got permission result. 09-18 13:04:51.220 10025 10046 I ArPresto: ArPresto::Session created. 09-18 13:04:51.245 10025 10046 E ArPresto: ArPresto::SetConfiguration failed to deserialize Augmented Image database with status -19.
That output suggests things are generally working. My guess is the phone may think it is unsupported.
Did you try Try Debug.LogFormating the ARSubsystemManager.systemState?
Hi! How do I handle Camera Permission declined in ARFoundation? I see the error being logged in Xcode and it seems to be in API level. But again, the session state seems to be in Initialising. Is there anyway to handle those errors inside ARFoundation itself?
Hi! How do I handle Camera Permission declined in ARFoundation? I see the error being logged in Xcode and it seems to be in API level. But again, the session state seems to be in Initialising. Is there anyway to handle those errors inside ARFoundation itself?
You can check whether camera permission was granted with this API: https://docs.unity3d.com/Packages/[email protected]/api/UnityEngine.XR.ARFoundation.ARCameraManager.html#UnityEngine_XR_ARFoundation_ARCameraManager_permissionGranted