try {
...
final PurchaserInfo info =
await Purchases.purchasePackage(package);
if (info.entitlements.all.containsKey('plus') && info.entitlements.all['plus']!.isActive) {
// amplitude logging for new subscription
// show toast to user to indicate success
}
} on PlatformException catch (e) {
...
}
We are using Flutter and support purchasing subscriptions (‘plus’ entitlement) and we noticed that our manual logging seems to be heavily undercounting the number of new subscriptions we get compared to RevenueCat’s dashes.
We verified that the entitlement and products are defined properly. Our understanding is that if the purchase succeeds, then PurchaserInfo should always have the ‘plus’ entitlement active. Are there cases where it’s expected for the entitlement to be inactive when the purchase succeeds? Or is there something else we can do to debug?