Message:
Hi RevenueCat team,
Some of our Android users are encountering a fatal error when calling Purchases.getOfferings()
:
PlatformException: PlatformException(error, There is no singleton instance. Make sure you configure Purchases before trying to get the default instance. More info here: https://errors.rev.cat/configuring-sdk, null, lb.f0: There is no singleton instance. Make sure you configure Purchases before trying to get the default instance. More info here: https://errors.rev.cat/configuring-sdk at com.revenuecat.purchases.Purchases$Companion.getSharedInstance(SourceFile:12) at com.revenuecat.purchases.hybridcommon.CommonKt.getOfferings(SourceFile:8) at com.revenuecat.purchases_flutter.PurchasesFlutterPlugin.getOfferings(SourceFile:5) ... )
This issue is happening sporadically in production, and the error implies that Purchases.configure()
was not called — however, our code ensures that configuration is completed before any calls to getOfferings()
are made.
This may indicate a race condition or an issue within the SDK itself, especially considering that it only affects some users and not others. We need your help to confirm what might be going wrong, and whether any additional safeguards are required on our end — or if this needs to be patched on your side.
Please investigate and let us know how to proceed.
Thanks.