Skip to content

Problems with EasyAR (invalid key on Release/Production Mode) #483

Open
@von-maurus

Description

@von-maurus

Hello!, I have a flutter app with a Unity Easy AR application which requires a Key in order to work. When I build in Debug Mode it works fine, no errors, but the problem is that when I make a build or immediately launch a project on the device in Release-mode , I get an error: Invalid Key. But at the same time, the application package ID and the key itself are 100% correct. This was tested on Android Device.

Steps to reproduce the behavior:

  1. Integrate Easy AR in your Unity Project (works fine)
  2. Export to Flutter following the steps on this Plugin
  3. Test it on debug mode (works fine)
  4. Generate a Release APK (fat).
  5. Get a an error like: "Invalid Key Get from EasyAR Develop Center (www.easyar.com) -> SD Authorization"

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
This is the error shown
image

Unity (please complete the following information):

  • OS: Android
  • Version: 2019.4.28.f1

Device version

  • Device: All Android devices
  • OS: Android
  • Version: SDK 24 or later

Additional context
The assumptions are the following:

  • Is not a Key version problem because I have a Pro Key generated with enhanced features.
  • The error prompt by EasyAR is very poor (invalid key message shown in image).
  • I'm assuming that an EasyAR library maybe gets eliminated or erased when a Release version is build.
  • Maybe the package name changes when a release apk is generated.
  • I checked 100% the package names and

If someone has a better way on doing AR apps using Vuforia or EasyAR please share some knowledge because the issues found didn't work for me. Here are some issues related to this bug:

Metadata

Metadata

Assignees

No one assigned

    Labels

    External libsThis issue is related to including and stripping of external librariesandroidThis issue is specific to the Android Platform.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions