-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Purchases.getOfferings() returning different object on Android vs iOS #727
Comments
👀 We've just linked this issue to our internal tracker and notified the team. Thank you for reporting, we're checking this out! |
Thanks for pointing that out. Sorry if that is confusing, we'll try to make it less confusing in a future release. |
Yeah, at the moment I am doing something like this: const periodLengthInMonths =
Platform.OS === 'android'
? selectedPackage.product.defaultOption.billingPeriod.value
: selectedPackage.product.introPrice.periodNumberOfUnits; |
@wmonecke Hey! 👋 I just noticed that your example above is grabbing two different types of periods 🤔
Design of
|
Describe the bug
I was able to get my offerings as follows:
However, the elements inside the
availablePackages
array are different in Android vs. on iOS.Is this intended? I didn't find anything related to this in the docs.
What could I be doing wrong?
availablePackages item on ios:
vs android
The text was updated successfully, but these errors were encountered: