Android Question Example of cloud KVS store

ocalle

Active Member
Licensed User
Longtime User
Hello! i Finding an example to use with my app, need a licence check routine that enable an app when the trial period ends, i have a windows server vps to install the B4j Server, but need an orientation how can be. i have some ideas on my mind about it, but not clear of all. If someone wanna help appreciate to work in a future project. Thanks B4X team!
 

johndb

Active Member
Licensed User
Longtime User
Hello! i Finding an example to use with my app, need a licence check routine that enable an app when the trial period ends, i have a windows server vps to install the B4j Server, but need an orientation how can be. i have some ideas on my mind about it, but not clear of all. If someone wanna help appreciate to work in a future project. Thanks B4X team!
I would suggest that you look at the tutorial for CloudKVS: https://www.b4x.com/android/forum/threads/b4x-cloudkvs-synchronized-key-value-store.63536/#content
 
Upvote 0

npsonic

Active Member
Licensed User
It's hard to bind license for specific device. It's possible, but not very reliable.

I would ask user to register email after trial period is over. Send confirmation mail from server to email for example some short code.
User types confirmation code, so that the server can register users email. After email is confirmed ask user to give some password for the account restore.
You can store salt of the password into server and use it when account restore is needed.
Generate some random string and send it to client device. Everytime app is used you can use that random string to make sure that device is registered.
When user changes device random string is missing and account needs to be restored. Use previously created password to make sure that user is legit and send new random string.
Now every time user wants to use licensed version he or she doesn't need to sign in.
 
Upvote 0
Top