Hi,
I have managed to connect my RevenueCat account to FF, i have succesfully added products to Google play store and to App store, and finished my RevenueCat setup. But the purchase action does not seem to work me. I was looking at the code and found this function that was responsible for the "Purchase" action.
// Purchase a package.
Future<bool> purchasePackage(String package) async {
try {
final revenueCatPackage = offerings?.current?.getPackage(package);
if (revenueCatPackage == null) {
print(offerings);
return false;
}
customerInfo = await Purchases.purchasePackage(revenueCatPackage);
return true;
} catch (_) {
return false;
}
}
When printing the offerings, i get completely different object that i would expect. It only has $.all property, it does not have $.current property which FF expects. I am 99% sure that my setup on RC and the app stores is correct, i just cannot get it to work in FF, has anyone faced a similar problem or can point me into some direction?
Thanks!
RevenueCat Integration
1
3 replies