You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How to add Firebase Analytic.logTransaction while we are using revenueCat
Here is code provide by Firebase
func purchaseSomeProduct(_ product: Product) {
// Purchase a Product. This is mostly standard boilerplate StoreKit 2
// code, except for the Analytics.logTransaction() call.
let result = try await product.purchase()
switch result {
case .success(let verification):
let transaction = try checkVerified(verification)
// Call this Firebase API to log the in-app purchase event.
Analytics.logTransaction(transaction)
await transaction.finish()
...
}
But the issue is we get StoreTrasaction while purchase and Firebase require FIRTrancation
in this case above code not working
In this link%20%7B%20%2F%2F%20Purchase%20a%20Product.) some one mention it not support with revenueCat
is it true? if not than how can handle this?
The text was updated successfully, but these errors were encountered:
Hi, unfortunately at this time Analytic.logTransaction is not possible when using RevenueCat. RevenueCat does not get the FIRTrancation value, and RevenueCat finishes transactions as soon as they’re made, so that by the time you get a result from purchaseProduct, the transaction is finished. As such even calling Analytics.logTransaction(...) after a purchase but before transaction.finish() is difficult to do. You can see another post on this issue here.
I recommend using our Firebase integration here instead, or you can try reaching out to Firebase about this to see if they have any recommendations.
How to add Firebase Analytic.logTransaction while we are using revenueCat
Here is code provide by Firebase
But the issue is we get StoreTrasaction while purchase and Firebase require FIRTrancation
in this case above code not working
In this link%20%7B%20%2F%2F%20Purchase%20a%20Product.) some one mention it not support with revenueCat
is it true? if not than how can handle this?
The text was updated successfully, but these errors were encountered: