javiersantos/PiracyChecker

License verification fails when using Google Play Licensing

zacharee opened this issue · 5 comments

  • I have verified there are no duplicate active or recent bugs, questions, or requests.
  • I have verified that I am using the latest version of PiracyChecker.
  • I have given my issue a non-generic title.
  • I have read over the documentation (before asking questions on how to do something).
Details
  • PiracyChecker version: 1.2.4
  • Device OS version: Any
  • Device Manufacturer: Any
  • Device Name: Any
Builder
        piracyChecker {
            enableSigningCertificate("/**/")
            enableGooglePlayLicensing("/**/")

            callback {
                doNotAllow { error, _ ->
                    sendResult(false, "PiracyChecker doNotAllow: $error")
                }

                onError {
                    sendResult(false, "PiracyChecker onError: $it")
                }

                allow {
                    sendResult(true, "PiracyChecker valid")
                }
            }
        }
Reproduction Steps
  1. Add LVL check with proper licensing key
  2. Test on any device
  3. PiracyChecker returns error in title
Expected Result

Users who've bought the APK should receive the "PiracyChecker valid" status.

Actual Result

Many are reporting that the verification fails.

This doesn't seem to be related to version 1.2.4, as users on the Play Store are complaining as well, with an APK using an older version of PiracyChecker.

Full class: https://pastebin.com/mLamh0xD

That was fixed on July 30. I was affected by it, and it was fine after that date.

Are you sure your users don't have an old version of the play store?

Anyways..

  1. Please add the whole code of the piracyChecker setup you use.
  2. You can get info about the error and the pirate app (if found) that your users have. Try to get those details and it should show you why the license check has failed.
    If you don't understand that info, let me know exactly what you get from it and I will explain

Sorry if I wasn't clear in the OP, but this setup has been largely the same since June. Through that, there were problems with the issue you linked, which got resolved. Through no changes on my end, it seems to have stopped working again (maybe Google changed the API?).

The Play Store users are using an older version of PiracyChecker from July 11. Both they and beta users (with the current November testing releases) have started complaining about this issue. The exact error I get is the one you edited from the title. I'll put the class into a Paste and link it in the OP.