kyrylokuzyk / google-play-license-check Goto Github PK
View Code? Open in Web Editor NEWSupport page for the 'Google Play License Check' plugin on the Asset Store
Home Page: https://assetstore.unity.com/packages/slug/227317
Support page for the 'Google Play License Check' plugin on the Asset Store
Home Page: https://assetstore.unity.com/packages/slug/227317
My use case:
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 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);
}
});
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 :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.