Hey everyone,
I'm having a really odd issue with licensing. So, if I set my license up as a Strict policy with no caching, IE:
Thanks.
I'm having a really odd issue with licensing. So, if I set my license up as a Strict policy with no caching, IE:
with logs:StrictPolicy strictPolicy = new StrictPolicy();
mChecker = new LicenseChecker(this, strictPolicy, BASE64_PUBLIC_KEY);
Then everything works fine using the developer account and setting the option in the profile field of LICENSED or NOT_LICENSED. However, if I use a Server Managed policy, IE:08-20 17:36:56.901: INFO/LicenseChecker(20257): Binding to licensing service.
08-20 17:36:56.931: INFO/LicenseChecker(20257): Calling checkLicense on service for com.nowsci.android.widgets.unread
08-20 17:36:56.931: INFO/LicenseChecker(20257): Start monitoring timeout.
08-20 17:37:03.341: INFO/LicenseChecker(20257): Received response.
08-20 17:37:03.341: INFO/LicenseChecker(20257): Clearing timeout.
with logs:mChecker = new LicenseChecker(
this, new ServerManagedPolicy(this,
new AESObfuscator(SALT, getPackageName(), deviceId)), BASE64_PUBLIC_KEY);
I get an invalid license no matter how I set the option in the profile for the developer account. Anyone know why this would be the case? Could it be cache related? And if so, how do I clear it? Uninstalling the app seems to make no difference. Notice the difference in the log entry, too (bold). It's like I get a timeout using ServerManagedPolicy.08-20 17:31:11.961: INFO/LicenseChecker(20110): Binding to licensing service.
08-20 17:31:11.991: INFO/LicenseChecker(20110): Calling checkLicense on service for com.nowsci.android.widgets.unread
08-20 17:31:11.991: INFO/LicenseChecker(20110): Start monitoring timeout.
08-20 17:31:21.991: INFO/LicenseChecker(20110): Check timed out.
Thanks.