Skip to content

subscriptionsByProductIdentifier is empty on Android for user with active subscriptionsΒ #2379

@niklasamslgruber

Description

@niklasamslgruber

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: RevenueCat/react-native-purchases#1248 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions