We using Flutter framework.
Questions:
A/B metrics result (https://app.adapty.io/ab-tests)
--> only shows the Production mode?
https://app.adapty.io/event-feed --> When we test subscription we can not show revenue, trials, views ... data in (https://app.adapty.io/ab-tests) is right?
How correct fetch transaction id?
Can you check fetch transaction id correction?
Future<bool?> _mapInAppPurchaseMake(AdaptyProduct qProduct) async {
try {
final MakePurchaseResult permissions =
await Adapty.makePurchase(qProduct);
if (permissions.purchaserInfo?.accessLevels["premium"]?.isActive ??
false) {
if(Platform.isAndroid){
await Adapty.restorePurchases();
}
if(permissions.purchaserInfo?.subscriptions[permissions.purchaserInfo?.accessLevels["premium"]?.vendorProductId]?.isActive ?? false){
String transactionId = permissions.purchaserInfo?.subscriptions[permissions.purchaserInfo?.accessLevels["premium"]?.vendorProductId]?.vendorTransactionId ?? '';
String variationId = qProduct.variationId ?? '';
await Adapty.setTransactionVariationId(transactionId, variationId);
}
return true;
}
return false;
} on AdaptyError catch (adaptyError) {
print(adaptyError);
if (adaptyError.adaptyCode == AdaptyErrorCode.paymentCancelled) {
print('AdaptyErrorCode.paymentCancelled');
}
} catch (err) {
print(err.runtimeType);
return false;
}
}
Regards
Samat Z.