How is google play store works?

incendio

Well-Known Member
Licensed User
Longtime User
Hi guys,

I am new in sell app to Google Play store. I have a few questions (sorry if this questions already asked)
1) when customers cancel a buy, does the apk already install will be uninstall automatically by Play store or it remains on the device?

2) does google gives customer's email account that buy the app?

Thanks in advance.
 

lemonisdead

Well-Known Member
Licensed User
Longtime User
Hello,
when customers cancel a buy, does the apk already install will be uninstall automatically by Play store or it remains on the device?
Yes, the app is removed from the device. But to be more confident, use the licencing library inside your app too.

does google gives customer's email account that buy the app?
No you never get the email address of your customers (but you can catch it from inside your app (Google's account))
 

sorex

Expert
Licensed User
Longtime User
Yes, the app is removed from the device. But to be more confident, use the licencing library inside your app too.

And what if you move the app to the SD and copy it to some other location? (might only work on rooted devices?)

Would the licensing lib solve anything on those actions?
 

lemonisdead

Well-Known Member
Licensed User
Longtime User
And what if you move the app to the SD and copy it to some other location?
I am sorry, that's too sharp for my little knowledge. I think, the app is known by its package name instead of its location but I am not sure.

Would the licensing lib solve anything on those actions?
Yes because you can manage the action allowed inside your app : you receive the NOT_ALLOW and are able to react directly by code. For example : when I receive the NOT_ALLOW, I immediately unable all the controls. The app gets unusable.
And you can make something more powerful : receive the NOT_ALLOW, interact with your server, do something, decide if you want to kill the app etc
 

sorex

Expert
Licensed User
Longtime User
what is the link between the user/phone and the licensing part?

how does the app know that the user revoked the payment? is it linked to google's backend?
 

lemonisdead

Well-Known Member
Licensed User
Longtime User
what is the link between the user/phone and the licensing part?
The link is the Google's account. You may want to take a look at Erel's tutorial and after that, your developer console. You will find the "Licensing tests" section (sorry translated from French) where you can put the email addresses and the default action returned by GP (you can set the action manually for your tests)
 

sorex

Expert
Licensed User
Longtime User
ok, but then you limit yourself to google play. some people seem to use Amazon or other distributing sites.
 

lemonisdead

Well-Known Member
Licensed User
Longtime User
You are right, I don't use any other distribution market. So perhaps do you have to search if they have their own way of tracking the licences ? Or more complex : manage it by your own. They are several ways of doing this : propose to store the user's settings on the cloud and store an ID for example or register the app for support or for a billboard, etc
 

DonManfred

Expert
Licensed User
Longtime User

incendio

Well-Known Member
Licensed User
Longtime User
I found that cached in licensing library was not to good, a licensed app could mark as an unlicensed when there is no internet connection for Google play store.
 

lemonisdead

Well-Known Member
Licensed User
Longtime User
a licensed app could mark as an unlicensed when there is no internet connection for Google play store
I guess you have made your tests with your own Google account (or one listed in the Licensing test section of the developer console). If it is true, you don't have to worry about. The GP cache will be filled when the customer had bought the app.
 

incendio

Well-Known Member
Licensed User
Longtime User
Cached works, but only for a few minutes.

I have an app using google licensing, made by other, running on 2 devices.
On 1 device, cached works OK without internet access, on the other, the app shows unlicensed status if I block GP access to the net.

This is something developer should anticipate, there are other factors that makes licensed app marked as unlicensed.
 
Top