purchases-android icon indicating copy to clipboard operation
purchases-android copied to clipboard

subscriptionsByProductIdentifier is empty on Android for user with active subscriptions

Open niklasamslgruber opened this issue 7 months ago • 1 comments

Describe the bug The variable subscriptionsByProductIdentifier on the CustomerInfo object is empty on Android (built with React Native). On iOS it works though. In the CustomerInfo I get activeSubscriptions and entitlements including all the metadata like expiration and purchase dates, but the subscriptionsByProductIdentifier is just empty while it SHOULD contain all my subscriptions keyed by their ID.

  1. Environment
    1. Platform: Android
    2. SDK version: 8.17.0
    3. OS version: Any
    4. Android Studio version: Any
    5. How widespread is the issue. 10%
  2. Steps to reproduce, with a description of expected vs. actual behavior CustomerInfo with Purchases.sharedInstance.getCustomerInfo for a user with an active subscription and checkout the value of customerInfo.subscriptionsByProductIdentifier

Additional context This issue also happens on the React Native SDK on Android, see here: https://github.com/RevenueCat/react-native-purchases/issues/1248#issuecomment-2827823503

niklasamslgruber avatar Apr 25 '25 08:04 niklasamslgruber

👀 We've just linked this issue to our internal tracker and notified the team. Thank you for reporting, we're checking this out!

RCGitBot avatar Apr 25 '25 08:04 RCGitBot

Reopening issue. It was closed due to a failing automation. Sorry about that.

vegaro avatar Sep 22 '25 07:09 vegaro

We deployed https://github.com/RevenueCat/purchases-android/pull/2377 in version 8.17.1. Closing this issue since it's been fixed.

vegaro avatar Oct 28 '25 11:10 vegaro

This issue has been automatically locked due to no recent activity after it was closed. Please open a new issue for related reports.

github-actions[bot] avatar Nov 05 '25 00:11 github-actions[bot]