"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

UnityAndroidPermissions not set correctly

When running an Android build for the first time (without camera permission set) my game hangs after accepting permission to use the devices camera. Looking at the permissions of the app after closing the game, I can see the camera permission was set, and any subsequent relaunch of the game runs without hanging and can use vuforia fine (I do get the same UnityAndroidPermissions error appearing in my logs tho). Using logcat I can see this message every time vuforia is initialized

"UnityAndroidPermissions was not correctly set. Please make sure you have not deleted any files in the Vuforia/Scripts/Internal directory."

I have not touched any files there (Looking at it, there is just one file, RuntimeOpenSourceInitializer). I tried removing vuforia via the packagemanager, and adding vuforia back via the package manager, but that did not fix anything. 

package manager says 8.3.9, although in logcat it is listing it as 8.3.8.

Does anyone know why my permissions are messed up?

 

Hi,

I briefly tested the behavior with the Vuforia Core Samples and was *not* able to reproduce the behavior.

Could you please be provide more details regarding the hanging part? does it hang for 1-2 seconds or does your app freeze?

Devastating

Tue, 08/20/2019 - 15:23

In reply to by mcotora

I am also having this issue after upgrading my Unity version and then subsequently getting Vuforia through the package manager, it was previously manually installed into the project. 

In the android logcat I am getting: 

Hi @Devastating

Thank you for the thorough post and testing.

I was curios to see if the issue also happens with the Vuforia Core Samples in your current setup. If you have time to test, please let me know the outcome.

Thank you.

Vuforia Engine Support