Skip to main content
Question

CustomerInfo -> what happens if there are multiple product identifiers with the same ID?

  • September 24, 2024
  • 2 replies
  • 20 views

Forum|alt.badge.img+6

In the Customer Info (https://www.revenuecat.com/docs/api-v1#tag/customer_info_model) `subscriber` field, there is a dictionary of identifiers to subscriptions. It looks like the identifier is the product identifier from the respective stores. What happens if the same identifier is present on the App Store and Google Play?

 

 

 

This post has been closed for comments

2 replies

Michael Fogel
Forum|alt.badge.img+6
  • Dedicated Contributor
  • 382 replies
  • September 26, 2024

Hey There,

 

In this object you can access more information about the subscription that is being looked at. What I would do in this case is check for the store field as this will help tell you which store this specific subscription is from.

 

Let me know if that helps and if you have any other questions! 


Forum|alt.badge.img+6
  • Author
  • New Member
  • 2 replies
  • September 26, 2024

Hi Michael,

I understand that, but let’s suppose I have the following:

  • 1 product with identifier “com.myapp.premium” on the App Store
  • 1 product with identifier “com.myapp.premium” on Google Play

And they are not associated with the same entitlements (for some reason).

What would the customer info look like?

“entitlements”: {

  “premium”: { 

     product_id: “premium” //

  },

  “premium 2” {

     product_id: “premium”

   }

},

“subscriptions”: {

   “premium”: {

       // Which one is it?

   }

}


I know this is unlikely to happen, but it feels like the data model is incorrect or I misunderstand something.

Thanks!

Bruno


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