StoreKit 2 on iOS: What is the Flutter Equivalent of Analytics.logTransaction for Manually Logging in_app_purchase Events? #17904
-
|
Hi everyone, BackgroundAccording to the Firebase documentation: https://firebase.google.com/docs/analytics/measure-in-app-purchases#implementation-apple When using StoreKit 2, the // Call this Firebase API to log the in-app purchase event.
Analytics.logTransaction(transaction)This makes sense, because on StoreKit 2 the SDK no longer receives automatic transaction updates. Question: What is the Flutter equivalent of
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
Hi @ibrahimdevs, sorry for the delayed response. You're correct that |
Beta Was this translation helpful? Give feedback.
-
|
Thank you, @SelaseKay! I'm really glad to see that this PR has just been merged. This feature is incredibly important for advertisers. We have been waiting for it for a long time, as we haven't been able to start our ad campaigns on the iOS side without it. So, this is really great news! I hope the new version including this PR will be released very soon. Thanks again! 🙌 |
Beta Was this translation helpful? Give feedback.
Hi @ibrahimdevs, sorry for the delayed response. You're correct that
logInAppPurchase()is intended for logging transactions that occur in WebView or other non-native billing flows. I'll update the documentation to make this clearer and help avoid future confusion. There’s an open PR that adds support for logging StoreKit 2 transactions: #17995. I believe this is the functionality you're referring to. In the meantime, you can test it by using the PR branch until it’s officially released.