Android Question Problem with License Checking

FabioG

Active Member
Licensed User
Longtime User
Hi Again,

I have a big problem with Licensing lib
often the license check fails

I contacted customer support for Google Developers
I have confirmed that you have no problems

users complain that the problem does not have problems with other paid apps
the license control works properly with other apps not written in b4a

I have already opened a topic for this in the past
but I continue to have problems
very many users complain about this problem
and I'm getting so many negative FeedBack

Please please fix this problem

I think it is necessary to update the Lib

I purchased this software, py for his software and have not received support for this
 

DonManfred

Expert
Licensed User
Longtime User
This is not correct. I did answer your previous post.

And he also get answers to his other posts...
Is there an DisLike-Button?
 
Upvote 0

FabioG

Active Member
Licensed User
Longtime User
Are you able to reproduce it? Are there any error messages in the logs?
Can you post the relevant code?


This is not correct. I did answer your previous post.
Are you able to reproduce it? Are there any error messages in the logs?
Can you post the relevant code?


This is not correct. I did answer your previous post.

the code I have shown in the previous post
you can read them

your answer was not to help
you said that this is a problem of the Server Google

this is not true, Google has confirmed that they have no problem

however, users who reported this problem, have no problems with the verification of licenses with other apps.
(applications that are not written in B4A)

I bought several apps and none of this has this problem

This is a problem of lib

PLEASE fix the problem

Thanks
 
Upvote 0

FabioG

Active Member
Licensed User
Longtime User
Your previous code you posted called lc.CheckAccess even when FirstTime was false. Have you fixed it?

Are you able to reproduce it? Are there any error messages in the logs?


Erel....The problem is in the lib

Anyway, this is the cose

B4X:
Sub Process_Globals
           Dim publicKey As String
           publicKey = "MII....."
           Dim app_2 As String
           Dim lc As LicenseChecker
End Sub

Sub Activity_Create(FirstTime As Boolean)
   
      lc.Initialize("lc", GetDeviceId, publicKey, "ssdfgdDf3dsfs.....".GetBytes("UTF8"))
      lc.SetVariableAndValue("app_2", "AppChKVer....")
      lc.CheckAccess

End Sub

Sub lc_Allow

End Sub


Sub lc_DontAllow
  
    Msgbox("License Check Failed","")
    Activity.Finish
  
End Sub

Sub lc_Error (ErrorCode As String)
  
    Msgbox("License Check Failed","")
    Activity.Finish
  
End Sub
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
As I previously wrote, your code is wrong. You should only call these three methods when FirstTime is true.

Make this update and see whether it resolves the issue you encounter.

It is more or less impossible to help you as you ignored my suggestion in the other thread and you also ignore my questions in this thread.

Many users are using this library successfully.
 
Upvote 0

FabioG

Active Member
Licensed User
Longtime User
As I previously wrote, your code is wrong. You should only call these three methods when FirstTime is true.

Make this update and see whether it resolves the issue you encounter.

It is more or less impossible to help you as you ignored my suggestion in the other thread and you also ignore my questions in this thread.

Many users are using this library successfully.

I'll try this
but considers that the problem occurs even after a reboot of the device

users have also tired to uninstall and reinstall the app
the problem persists
I do not think that the problem can be resolved this way, but I'll try

Thanks
 
Upvote 0

FabioG

Active Member
Licensed User
Longtime User
As I previously wrote, your code is wrong. You should only call these three methods when FirstTime is true.

Make this update and see whether it resolves the issue you encounter.

It is more or less impossible to help you as you ignored my suggestion in the other thread and you also ignore my questions in this thread.

Many users are using this library successfully.

I followed your advice, I have corrected the code
but the problem has remained
still many users complain about the problem after the upgrade

this was obvious Erel, the problem also occurs the first time you launch the app
what you've suggested makes sure to check the license only at the first start, but the problem always occurs.

Please check your lib and solve the problem
I'm getting too many complaints and requests for reimbursement

Thanks again
 
Upvote 0
D

Deleted member 103

Guest
I followed your advice, I have corrected the code
but the problem has remained
still many users complain about the problem after the upgrade

this was obvious Erel, the problem also occurs the first time you launch the app
what you've suggested makes sure to check the license only at the first start, but the problem always occurs.
Some of my clients have also the problem. I always tell them they are directly run by google-play install the app again and then everything is OK. Only sometimes you do not have internet access, as because they have only one tablet with wifi, and then it does not work.
Just before 2 minutes a customer has had the same problem also.
 
Upvote 0

FabioG

Active Member
Licensed User
Longtime User
I'm sorry but I cannot fix the library without more information. You need to reproduce it and send the logs.

I don't know what is the problem. Note that this library is used successfully by many developers.

Erel,

as you can leffere @Filippo has the same problem
and I am sure that many other users have this problem
but have not yet written

Need to fix please...
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
The decision whether the app is licensed or not is handled by Google code. It uses the recommended ServerManagedPolicy class that Google wrote.

There isn't any code in the wrapper itself that affects the decision. I understand that you want a fix. However without more information I do not know what is the problem.

With that said the licensing library is becoming less and less relevant as Google has added a native layer of protection (from Android 4.1+).
 
Upvote 0
D

Deleted member 103

Guest
With that said the licensing library is becoming less and less relevant as Google has added a native layer of protection (from Android 4.1+).
Means that the license library from android 4.1+ is no longer necessary?
 
Upvote 0

FabioG

Active Member
Licensed User
Longtime User
The decision whether the app is licensed or not is handled by Google code. It uses the recommended ServerManagedPolicy class that Google wrote.

There isn't any code in the wrapper itself that affects the decision. I understand that you want a fix. However without more information I do not know what is the problem.


What information do you need?
how do I get them?

With that said the licensing library is becoming less and less relevant as Google has added a native layer of protection (from Android 4.1+).

I'm confused
if do not need as I protect my app?
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
What information do you need?
Try to reproduce it and check the logs, including the unfiltered logs.

If so then could I solve it, right?
Not exactly. Users who download your app with an Android 4.1+ will download an encrypted app which will only work on their devices.

Users can still download your app with an older rooted device and then share it.
 
Upvote 0
D

Deleted member 103

Guest
Not exactly. Users who download your app with an Android 4.1+ will download an encrypted app which will only work on their devices.

Users can still download your app with an older rooted device and then share it.
and so would be better?
B4X:
lc.Initialize("lc", GetDeviceId, publicKey, "ssdfgdDf3dsfs.....".GetBytes("UTF8"))
lc.SetVariableAndValue("app_2", "AppChKVer....")
If sdk < 4.1 Then
      lc.CheckAccess
End If
Or what is the best solution?
 
Last edited by a moderator:
Upvote 0
Top