Log in or register to post comments

Issues with permissions (Android Java)

October 8, 2019 - 6:13am #1

Hi,

I've been having issues trying to get the most basic part of the SDK working.

I'm running on an android 5.1.1 device and the basic samples load fine, however when i try to initalize the SDK with

Vuforia.init()

(after calling Vuforia.setInitParameters(Activity, int, string) with the correct flags and test license key) it fails with error code -1 (INIT_ERROR), and I get this line in the logcat:

E/AR: Error - failed to assert required Android permissions. Failed to initialize Vuforia SDK. All required Android permissions must be included for the SDK to work.

For reference, this is the relevant part of my manifest:

<uses-permission android:name="android.permission.CAMERA" />

<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />

<uses-permission android:name="android.permission.INERNET"/>

<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

<uses-feature android:glEsVersion="0x00020000"  android:required="true"/>

<uses-feature android:name="android.hardware.camera"  android:required="true"/>

Any ideas?

Thanks in advance,

John

 

P.S.: the sample application compiles fine and at least starts the camera, so I don't think it's a device problem.

Issues with permissions (Android Java)

October 20, 2019 - 6:58am #3

jstefanelli wrote:

Hi,

I've been having issues trying to get the most basic part of the SDK working.

I'm running on an android 5.1.1 device and the basic samples load fine, however when i try to initalize the SDK with

Vuforia.init()

(after calling Vuforia.setInitParameters(Activity, int, string) with the correct flags and test license key) it fails with error code -1 (INIT_ERROR), and I get this line in the logcat:

E/AR: Error - failed to assert required Android permissions. Failed to initialize Vuforia SDK. All required Android permissions must be included for the SDK to work.

For reference, this is the relevant part of my manifest:

<uses-permission android:name="android.permission.CAMERA" />

<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />

<uses-permission android:name="android.permission.INERNET"/>

<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

<uses-feature android:glEsVersion="0x00020000"  android:required="true"/>

<uses-feature android:name="android.hardware.camera"  android:required="true"/>

Any ideas?

Thanks in advance,

John

 

P.S.: the sample application compiles fine and at least starts the camera, so I don't think it's a device problem.

<uses-permission android:name="android.permission.CAMERA" />

Issues with permissions (Android Java)

October 10, 2019 - 2:32am #2

Hi,

Vuforia only initializes the camera, permissions need to be handled at app level. Could you please check our sample app for android and see how we handle the permissions?

In addition here is a post which covers the permissions for android. https://forum.unity.com/threads/anyway-to-stop-vuforia-asking-for-camera-permission-at-startup-android.535138/#post-3999415

Thank you.

Vuforia Engine Support

Log in or register to post comments