GithubHelp home page GithubHelp logo

kyrylokuzyk / google-play-license-check Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 246 KB

Support page for the 'Google Play License Check' plugin on the Asset Store

Home Page: https://assetstore.unity.com/packages/slug/227317

android anticheat googleplay license

google-play-license-check's People

Contributors

kyrylokuzyk avatar

Watchers

 avatar

google-play-license-check's Issues

Application.identifier won't return the Android package name if non-Android platform is not selected.

My use case:

  • My iOS and Android app don't have the same package name
  • I downloaded and setup the plugin while I had the iOS platform selected in Unity

GooglePlayLicenseSettings is asking to confirm the Package Name but wasn't showing the proper package name.

To Fix:

GooglePlayLicenseSettingsInspector should use PlayerSettings.GetApplicationIdentifier(BuildTargetGroup.Android) instead of Application.identifier

Just a small issue, but would be a nice improvement.

I want to be able to implement it without knowing App Licensing

I would like to implement it without needing to know the App Licensing specs. The following form is easy to understand. I would appreciate your kind consideration.

GooglePlayLicense.Check(license =>
{
    // License verification complete
    if (license.IsSuccessCheckLicense)
    {
        // license.status == LicenseStatus.LICENSED
        // || license.status == LicenseStatus.LICENSED_OLD_KEY
        // || license.status == LicenseStatus.NOT_LICENSED
        // || license.status == LicenseStatus.ERROR_OVER_QUOTA
        // || license.status == LicenseStatus.ERROR_NOT_MARKET_MANAGED
        // || license.status == LicenseStatus.ERROR_INVALID_PACKAGE_NAME
        // || license.status == LicenseStatus.ERROR_NON_MATCHING_UID

        // Licensed.
        if (license.HasLicense)
        {
            // license.status == LicenseStatus.LICENSED
            // || license.status == LicenseStatus.LICENSED_OLD_KEY

            if (license.IsSubscribedPlayPass)
            {
                // This user has a license for Google play pass
            }
        }
    }
    else if (!license.HasError)
    {
        // Need to retry to get a license.
        // license.status == LicenseStatus.ERROR_CONTACTING_SERVER
        // || license.status == LicenseStatus.ERROR_SERVER_FAILURE
    }
    
    if (license.HasError)
    {
        // license.status == LicenseStatus.ERROR_INVALID_PACKAGE_NAME
        // || license.status == LicenseStatus.ERROR_NON_MATCHING_UID
    }
});

The following would be more helpful

// Timeout:60s Repeat retries within this number of seconds.
GooglePlayLicense.Check(60, license =>
{
    if (license.IsSuccessCheckLicense
        && license.HasLicense)
    {
        // license.status == LicenseStatus.LICENSED
        // || license.status == LicenseStatus.LICENSED_OLD_KEY
        if (license.IsSubscribedPlayPass)
        {
            // This user has a license for Google play pas
        }
    }
    
    if (license.HasError)
    {
        // license.status == LicenseStatus.ERROR_CONTACTING_SERVER
        // || license.status == LicenseStatus.ERROR_SERVER_FAILURE
        Debug.LogError(license.Error);
    }
});

Google-Play-License-Check

Hey @KirillKuzyk, hope all is well.
Are you familiar with a package named com.pairip.licensecheck3 ?
I wonder if it has to do with your Play License Check plugin :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.