logTransaction method
Logs verified in-app purchase events in Google Analytics for Firebase after a purchase is successful.
Only available on iOS.
You can obtain the transactionId from the
in_app_purchase package.
Implementation
Future<void> logTransaction(String transactionId) async {
if (defaultTargetPlatform != TargetPlatform.iOS &&
defaultTargetPlatform != TargetPlatform.macOS) {
throw UnimplementedError(
'logTransaction() is only supported on iOS and macOS.',
);
}
return _delegate.logTransaction(transactionId: transactionId);
}