Licensing library and cache

lemonisdead

Well-Known Member
Licensed User
Longtime User
Hello,

I have tried the sample provided by Erel for the Licensing library. I have got a problem which is surely due to my misunderstanding of the licensing cache.

On a test device, a Polaroid PROG95D running ICS, when the data connection is OFF, I enter the lc_Error sub even if the app was previously licensed.

I am wrong when I think that a previously licensed app won't enter the authorization process ? If no, should I manage a license state separately ?

Thanks a lot
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
The licensing library uses Google default policy. The result is cached however there are all kinds of parameters that affect this cache. The purpose is to prevent someone from cancelling the order and continuing to use your app.

You can read more about it in Google documentation (there is a link in the licensing tutorial).
 
Upvote 0

lemonisdead

Well-Known Member
Licensed User
Longtime User
Hello Erel,

I do thank you for your reply and I read the tutorial. The problem I got is about understanding how this works.

During my tests, I have passed the lc_Allow with several devices. But with this specific device I run in the lc_Error when data is OFF, reason why I asked.

I am going to put a boolean somewhere to authorize by default on this device but it is unsure others I do not have won't act exactly the same.

Thanks a lot ;)
 
Upvote 0
Top