Question

How to convert an app from payment to subscription on android?

  • 23 August 2021
  • 6 replies
  • 48 views

Badge

I'm starting to use the revenuecat SDK to push subscriptions to my apps. I have an app that is currently paid and I would like to convert to the subscription model.

In IOS, I have implemented a check to verify the first version that the user was installed, and if this is paid, I can deduce that the user has already paid for the app.

My problem comes with the android version, since in the sdk of this platform I cannot find an attribute similar to that of IOS that indicates the version or the date of the first installation of the app by this user. Is there any mechanism to be able to perform this check in android?


6 replies

Userlevel 2
Badge +6

Hey @Diegocidm4 :wave: ,

Unfortunately Google does’t provide us with any information for version or the date of the first installation of the app by this user.  A work around would be to grant promotional entitlements to certain accounts that you know are paid android accounts. If you know the accounts you want to give access, for example if you had record of those accounts on your back end, you could give access via our REST API.

Badge

Good morning, I have tried to test the REST API that you indicate to me, but I always get the answer {
    "code": 7117,
    "message": "Page not found."
}

I am calling the url https://api.revenuecat.com/v1/subscribers/diegocidm4%40gmail.com/entitlements/suscripcionAnual/promotional /? Duration = lifetime and indicating the API Key in the headers.

Userlevel 2
Badge +6

Hey @Diegocidm4 ,

Is diegocidm4%40gmail.com an App User ID in RevenueCat? This error could be occurring if you are trying to grant a promotional for an App User ID not found in our system. 

Badge

Hello, the id diegocidm4@hotmail.com is an Apple id that I want to offer free access to from revenuecat. What is the way to register a user in revenuecat without the need for the user to buy the subscription?

Userlevel 2
Badge +6

Hey @Diegocidm4 ,

How are you identifying users in your system? We have some documentation on identifying users here: https://docs.revenuecat.com/docs/user-ids

Badge

In my app, users do not need a registration for their access, so, after their first comment, I was thinking about how to retrieve the google play user who has bought the app to associate a promotion with it, but for what I have read it is not possible to use this approach. What would be your recommendation to offer a promotional code for subscriptions to users who have already paid for the subscription based solely on their associated google account?

Reply