I have worked for businesses where all their employees use the same google play account to install apps, how can you setup a subscription so one subscription allows one device rather than pay once and use the same app on 100 devices ?
Im sure this question must have been asked before so I’m hoping this can be done.
However, if you do not have a login system where you’re getting the App User ID from your authentication system, you may be able to simplify what you’re after by generating a UUID for each install and setting that as the App User ID. Then if 100 ppl logged in with the same Google Play account on 100 devices, each one would still have a unique App User ID, and each customer would need to restore purchases to “transfer” the subscription to their account which would remove it from anyone else.
However, if you do not have a login system where you’re getting the App User ID from your authentication system, you may be able to simplify what you’re after by generating a UUID for each install and setting that as the App User ID. Then if 100 ppl logged in with the same Google Play account on 100 devices, each one would still have a unique App User ID, and each customer would need to restore purchases to “transfer” the subscription to their account which would remove it from anyone else.
If I generate a UUID on a sale and store it in preferences and at the same time use the UUID on the sale details.
I believe in the checkForProEntitlement function I should be able to check for the same UUID being returned from revenueCat to support this is a valid subscribed device, otherwise the new device would need to subscribe so in essence thats one subscription per device.
Now I need one of those magic reveneCat step by step documents to make that bit more obvious what I send to revenueCat and have to extract the UUID from the checkForProEntitlement
Basically I use the code generated by the purchasing device, then check this number when the app is started if the code does not match keep the app in an unsubscribed state,
As only one device has the magic key and it cant be passed to the other clients so only one client will only ever be subscribed other devices will never sign into the subscription state due to the locked key.
Did this post help you find an answer to your question?
We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.