Skip to main content
Question

How to detect free days trial for subscription in android (promo offer)

  • February 20, 2025
  • 1 reply
  • 123 views

Forum|alt.badge.img

I followed that documentation

https://www.revenuecat.com/docs/subscription-guidance/subscription-offers/google-play-offers

 

I have a renewable subscription in my app and I created a bunch of promo codes. Then I redeemed that code which offered me 14 free days of usage of my app.

The problem is that in the overview chart it shows that purchase as a normal one

According to the docs it should be a trial? I can deduce that promo code was used by looking at revenue column, not sure that’s the correct way to identify promo codes?

 

Additionally I thought that offer_code field is going to be populated, but it’s not.

That’s the json, I have received via web hook

{
"api_version": "1.0",
"event": {
"aliases": [
"<removed>"
],
"app_id": "<removed>",
"app_user_id": "<removed>",
"commission_percentage": 0.122,
"country_code": "PL",
"currency": "PLN",
"entitlement_id": null,
"entitlement_ids": [
"full_access_subscription"
],
"environment": "SANDBOX",
"event_timestamp_ms": 1740045029955,
"expiration_at_ms": 1741254604897,
"id": "<removed>",
"is_family_share": false,
"metadata": null,
"offer_code": null,
"original_app_user_id": "<removed>",
"original_transaction_id": "<removed>",
"period_type": "NORMAL",
"presented_offering_id": null,
"price": 0,
"price_in_purchased_currency": 0,
"product_id": "full_access_subscription:monthly-subscription",
"purchased_at_ms": 1740045005693,
"renewal_number": 1,
"store": "PLAY_STORE",
"subscriber_attributes": {},
"takehome_percentage": 0.85,
"tax_percentage": 0.187,
"transaction_id": "<removed>",
"type": "INITIAL_PURCHASE"
}
}

Shouldn’t the type be “TRIAL” ?

Is that expected behaviour ?

I use quite recent version of react-native-purchases - 8.5.4

 

This post has been closed for comments

1 reply

Forum|alt.badge.img+3
  • RevenueCat Staff
  • March 6, 2025

Hi there, Google has two general categories of offers. One as you linked where you can configure the offers with the subscription with a base plan and an offer period. The other is the Google Promotional Offers: https://www.revenuecat.com/docs/tools/customer-center/customer-center-promo-offers-google

So in your case, I see that the ones where you have configured with the subscription with a base plan and an offer period are working correctly where the type is displayed as a “TRIAL”.

But the particular case you showed was purchased with a Google Promotional Offers which was purchased with a one time code is showing the period type as “NORMAL”. We don’t currently consider these as a “TRIAL” but I can see why we may want to do that.

I’m going to check with our team to see if we should change this.