Unity Google Play License Verification (LVL)

1.3k Views Asked by At

I am trying to implement License verification into my android unity game. I found this plugin, but the problem is that I am doing this for the first time and don't really know what to do.

I imported that into my project and attached CheckLVLButton.cs to a gameObject in my scene and inserted my public LVL key to the script.

I have even recompiled the Java source and attached the new classes_jar.txt to the CheckLVLButton script, but I am still getting this error. This is the output of the log

And when I try to debug it on Android using Visual Studio, there is an error that ServiceBinder is null.

But when I try to run the game and push that button it just says Invalid LVL key! Check the source... But I have it right.

Do I have to do something else? Do I have to install it from google play beta test instead of building apk with unity and installing?

1

There are 1 best solutions below

4
CherryCoke On

You have to put it up in a test track, install it from the Playstore, and then test it. (it's a pain, and I am still not there yet.) The reason that it is saying that it is invalid is because it's not installed from the playstore.