Skip to content

Failed to initialize vuforia #514

Open
@FarahBedoui96

Description

@FarahBedoui96

Error displaying Unity activity in Flutter for the second time run ( it works only the first time).

The error says that it fails to initialize vuforia. After close examination of the bug it appeared that when the unity activity asks me the first time to use the camera (permission) and I put the permission to "only when using the app" , the next time I run the app the vuforia error shows. I was able to figure out that the permission is the main cause because when I changed it to "always ask" from the settings and run the app unityactivity shows again with no error.
in the configuration of the package nothing asks to put a permission in flutter or request it and even if I request it from flutter the same error appears. I guess something in the native code should change so that the permission has to be requested every time I open the unity activity and not put as granted all the time because vuforia needs to ask for permission everytime.
Can anyone help me in this? I have a project to be released as soon as possible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions