You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Faced a "funny" bug. When calling getCurrentOfferingForPlacement it didn't work and returned null on Android although I had everything set up (it worked well on iOS).
It turns out, when I debugged, I called one time getOfferings to communicate to my RevenueCat Android app platform. And suddenly it unlocked all my calls to getCurrentOfferingForPlacement. getCurrentOfferingForPlacement started to proprely return values although I didn't change anything. I could then get rid of getOfferings call without any issue
I am not sure if this happens only on Android, I suspect this may also happen with iOS apps.
TLDR: before calling getCurrentOfferingForPlacement it seems you need to be sure that getOfferings has been called one time during the entire lifecycle of your RevenueCat app.
Environment
Platform: Android
SDK version: 8.6.1
OS version: Android 14
Xcode/Android Studio version: Android Studio Ladybug Feature Drop | 2024.2.2
React Native version: 0.76.7
SDK installation (CocoaPods + version or manual): COCOAPODS: 1.16.2
How widespread is the issue. Percentage of devices affected.
The text was updated successfully, but these errors were encountered:
Describe the bug
Faced a "funny" bug. When calling
getCurrentOfferingForPlacement
it didn't work and returned null on Android although I had everything set up (it worked well on iOS).It turns out, when I debugged, I called one time
getOfferings
to communicate to my RevenueCat Android app platform. And suddenly it unlocked all my calls togetCurrentOfferingForPlacement
.getCurrentOfferingForPlacement
started to proprely return values although I didn't change anything. I could then get rid ofgetOfferings
call without any issueI am not sure if this happens only on Android, I suspect this may also happen with iOS apps.
TLDR: before calling
getCurrentOfferingForPlacement
it seems you need to be sure thatgetOfferings
has been called one time during the entire lifecycle of your RevenueCat app.The text was updated successfully, but these errors were encountered: