Not licensed Android APK

Im trying to send an apk with a obb file to the play store in google play console as beta test, but they told me that I have the “Not licensed” issue (screen attached)

When I run my app in debug and development mode everything runs ok, but when I sign the app with my store key and try to run the app I receive an native alert with the message “Not licensed” (screen attached)

Actually my app is in the store and I trying to send an update

I configure my beta testers in the console and the option for these testers is “LICENSED” (screen attached)

Corona Info:

Version 2018.3326 (2018.6.25)

I have the following code to check the license

local function licensingListener(event)

if not event.isVerified then – Not a verified APK downloaded from the Google Play store

logger.warn(“This instance is not verified”)

end

end

local licensing = require(“licensing”)

if licensing.init(“google”) then

licensing.verify(licensingListener)

else

logger.warn(“Licensing could not be init”)

end

I configure my key in the config file and build file

Build settings file settings = { android = { usesPermissions = { "com.android.vending.CHECK\_LICENSE" }, }, } config file application = { license = { google = { key = "MY KEY", }, }, }

the licensing.init function never execute as success

The log prints the following message that I put in my code

logger.warn(“Licensing could not be init”)

Erik,

This could be a few different things.

Are you testing on an old Android device?

Recently I discovered the “Licensing” api is broken and won’t work with older Android Versions.  I believe my old Samsung Tab I use for testing has 4.4.4 on it.  

I submitted a bug report, but don’t believe it was ever fixed for older versions, I’m told “Licensing” works on recent versions.

If an old Android version isn’t your problem, then I believe you have to upload your beta update to the Play Store before Google will verify “Licensing”.

I could be wrong on this, but I believe you need to download the update from the Play Store onto your device before the license will be accepted.  After you download the update from the Play Store and launch it, you can modify it and load it directly to your device afterwards.  At least this method has worked for me, others I’m sure will chime in with their experience.

I change my store description slightly to make sure I’m downloading the update from the Play Store.  There is some delay for the update to be available to Beta testers in the Play Store from my experience.

Hope this helps,

Nail

Thank you for your answer

We already tried on different Android versions and devices and it happens.

We uploaded beta and weren’t released because of this issue.

Probably is a configuration in the “google play console” we haven’t found it yet

Did you ever solve this? I am having the same problem now.

This is happening for us on all the Google test devices when we upload a new version of the app and it runs the pre-launch report.

We don’t have a dialog in our system that says “not licensed” and as per the screenshot above it seems to crash the app and show the dialog on top of a “Restart download” button.

Could this be related to us using the expansion file? We use an expansion just like Erick above.

Seems to be isolated to the Google pre-launch report.

Erik,

This could be a few different things.

Are you testing on an old Android device?

Recently I discovered the “Licensing” api is broken and won’t work with older Android Versions.  I believe my old Samsung Tab I use for testing has 4.4.4 on it.  

I submitted a bug report, but don’t believe it was ever fixed for older versions, I’m told “Licensing” works on recent versions.

If an old Android version isn’t your problem, then I believe you have to upload your beta update to the Play Store before Google will verify “Licensing”.

I could be wrong on this, but I believe you need to download the update from the Play Store onto your device before the license will be accepted.  After you download the update from the Play Store and launch it, you can modify it and load it directly to your device afterwards.  At least this method has worked for me, others I’m sure will chime in with their experience.

I change my store description slightly to make sure I’m downloading the update from the Play Store.  There is some delay for the update to be available to Beta testers in the Play Store from my experience.

Hope this helps,

Nail

Thank you for your answer

We already tried on different Android versions and devices and it happens.

We uploaded beta and weren’t released because of this issue.

Probably is a configuration in the “google play console” we haven’t found it yet

Did you ever solve this? I am having the same problem now.

This is happening for us on all the Google test devices when we upload a new version of the app and it runs the pre-launch report.

We don’t have a dialog in our system that says “not licensed” and as per the screenshot above it seems to crash the app and show the dialog on top of a “Restart download” button.

Could this be related to us using the expansion file? We use an expansion just like Erick above.

Seems to be isolated to the Google pre-launch report.