Replies: 1 comment
-
|
The Likely Causes1. Xcode Version IssueOlder Xcode versions (before 16.4) have known issues causing duplicate events. Solution: Upgrade to Xcode 16.4 or later. 2. Firebase SDK BehaviorFirebase Analytics automatically tracks App Store events. Duplicate logging can occur due to:
3. Sandbox EnvironmentThe iOS Sandbox environment is known to be unreliable and may trigger duplicate events that don't occur in production. Solutions
Deduplication Exampleconst processedTransactions = new Set<string>();
const handlePurchase = (purchase: Purchase) => {
if (processedTransactions.has(purchase.transactionId)) {
return; // Already processed
}
processedTransactions.add(purchase.transactionId);
// Process purchase...
};References |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
We have observed that the app_store_subscription_renew event(firebase automatically collected event) is being triggered during subscription purchase multiple times on iOS. This issue is causing inflated event counts and making it difficult to accurately analyze user subscription behaviour. Please check ss for reference.
Beta Was this translation helpful? Give feedback.
All reactions