I'm developing a app using xamarin and a plug-in port of Google Licensing. And I can't get it to work... I set 3 testers to reply licenced in the developer console ( including myself ) and on those accounts I get NotLicenced response... Even logged in with my publisher account.
his is the plugin i'm using: https://github.com/mattleibow/Android.Play.ExpansionLibrary
this is the code I'm using:
bool internet = Task.Run(CheckNET).Result;
// Construct the LicenseChecker with a policy.
var obfuscator = new AesObfuscator(Salt, this.PackageName, Android.Provider.Settings.Secure.GetString(ContentResolver, Android.Provider.Settings.Secure.AndroidId));
var policy = new ServerManagedPolicy(this, obfuscator);
this.checker = new LicenseChecker(this, policy, "Here is my API public key");
I've fixed all application error messages in within the first tries (permissions and then NotMarketManaged) and now I'm stuck getting NotLicensed...
So the communication is working, just the License response isn't comming back as it should be for the emails listed in License Testing.
So.. with more testing it a bit strange... I've set ERROR_NON_MATCHING_UID as default response for testers and it did reply that exact error.... but when I changed back to Licensed I got NOT_LICENSED response...
After that it got way stranger... I've played a bit with the response options and this is what responses I got from Google Licensing server:
Google Console set to: Server Response:
so... can anyone explain what is going on? Could the plugin that I'm using be analysing the codes wrongly?
I've checked the plugin code and this is what I found that it is using these response codes:
Licensed = 0x0,
NotLicensed = 0x1,
LicensedOldKey = 0x2,
NotMarketManaged = 0x3,
ServerFailure = 0x4,
OverQuota = 0x5,
ErrorContactingServer = 0x101,
InvalidPackageName = 0x102,
NonMatchingUid = 0x103
can anyone confirm if these are the correct coded that Google Licensing replies?