Skip to main content
Question

Purchases.getOfferings() not returning benefits of subscription plans for google play

  • December 21, 2024
  • 1 reply
  • 24 views

Forum|alt.badge.img

I'm using RevenueCat's fetchOfferings to retrieve subscription details for my app. While it successfully fetches the description of the subscription products I created in the Google Play Console, it does not retrieve the benefits that I added when setting them up.

Here is an example of the output returned by fetchOfferings:

{
	"monthly_plans": [
		{
			"offeringIdentifier": "test",
			"product": {
				"presentedOfferingIdentifier": "test",
				"subscriptionOptions": [
					{
						"presentedOfferingContext": {
							"placementIdentifier": null,
							"targetingContext": null,
							"offeringIdentifier": "test"
						},
						"introPhase": null,
						"freePhase": null,
						"isPrepaid": false,
						"presentedOfferingIdentifier": "test",
						"fullPricePhase": {
							"offerPaymentMode": null,
							"billingCycleCount": 0,
							"price": {
								"currencyCode": "INR",
								"amountMicros": 300000000,
								"formatted": "₹300.00"
							},
							"recurrenceMode": 1,
							"billingPeriod": {
								"iso8601": "P1M",
								"value": 1,
								"unit": "MONTH"
							}
						},
						"isBasePlan": true,
						"billingPeriod": {
							"iso8601": "P1M",
							"value": 1,
							"unit": "MONTH"
						},
						"productId": "com.whinchat.ai.paid_basic",
						"tags": [],
						"pricingPhases": [
							{
								"offerPaymentMode": null,
								"billingCycleCount": 0,
								"price": {
									"currencyCode": "INR",
									"amountMicros": 300000000,
									"formatted": "₹300.00"
								},
								"recurrenceMode": 1,
								"billingPeriod": {
									"iso8601": "P1M",
									"value": 1,
									"unit": "MONTH"
								}
							}
						],
						"storeProductId": "com.whinchat.ai.paid_basic:base-basic-monthly",
						"id": "base-basic-monthly"
					}
				],
				"introPrice": null,
				"currencyCode": "INR",
				"priceString": "₹300.00",
				"subscriptionPeriod": "P1M",
				"productCategory": "SUBSCRIPTION",
				"price": 300,
				"title": "Basic (Whinchat)",
				"productType": "AUTO_RENEWABLE_SUBSCRIPTION",
				"discounts": null,
				"presentedOfferingContext": {
					"placementIdentifier": null,
					"targetingContext": null,
					"offeringIdentifier": "test"
				},
				"defaultOption": {
					"presentedOfferingContext": {
						"placementIdentifier": null,
						"targetingContext": null,
						"offeringIdentifier": "test"
					},
					"introPhase": null,
					"freePhase": null,
					"isPrepaid": false,
					"presentedOfferingIdentifier": "test",
					"fullPricePhase": {
						"offerPaymentMode": null,
						"billingCycleCount": 0,
						"price": {
							"currencyCode": "INR",
							"amountMicros": 300000000,
							"formatted": "₹300.00"
						},
						"recurrenceMode": 1,
						"billingPeriod": {
							"iso8601": "P1M",
							"value": 1,
							"unit": "MONTH"
						}
					},
					"isBasePlan": true,
					"billingPeriod": {
						"iso8601": "P1M",
						"value": 1,
						"unit": "MONTH"
					},
					"productId": "com.whinchat.ai.paid_basic",
					"tags": [],
					"pricingPhases": [
						{
							"offerPaymentMode": null,
							"billingCycleCount": 0,
							"price": {
								"currencyCode": "INR",
								"amountMicros": 300000000,
								"formatted": "₹300.00"
							},
							"recurrenceMode": 1,
							"billingPeriod": {
								"iso8601": "P1M",
								"value": 1,
								"unit": "MONTH"
							}
						}
					],
					"storeProductId": "com.whinchat.ai.paid_basic:base-basic-monthly",
					"id": "base-basic-monthly"
				},
				"description": "Glide through the line for 0.1 USD per day.",
				"identifier": "com.whinchat.ai.paid_basic:base-basic-monthly"
			},
			"packageType": "MONTHLY",
			"presentedOfferingContext": {
				"placementIdentifier": null,
				"targetingContext": null,
				"offeringIdentifier": "test"
			},
			"identifier": "$rc_monthly"
		}
	],
	"annual_plans": [],
	"metadata": {}
}

As you can see, the description is fetched ("description": "Glide through the line for 0.1 USD per day."), but I don’t see any data regarding the benefits that I added to my subscription products in the Google Play Console.

Things I've Tried:

  • Verified that the benefits are correctly added in the Google Play Console.
  • Ensured that the RevenueCat SDK is properly integrated and updated to the latest version.
  • Double-checked the fetchOfferings implementation.

Question:

Why might fetchOfferings not fetch the benefits for the subscription products? Is there a known limitation, or am I missing something in the configuration or setup process?

1 reply

wes_clark
RevenueCat Staff
Forum|alt.badge.img+6
  • RevenueCat Staff
  • 262 replies
  • January 7, 2025

Hi! We do not currently provide that information in the Benefits section through the SDK. I will raise its inclusion to the team internally. 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings