Repository navigation
Tags
Tags
Stop a deferred open being swallowed by the open before it The dedupe that keeps one tap from being counted twice was keyed on the URL alone, so a deferred report arriving just after an ordinary one for the same link was discarded as a repeat. It is not a repeat: they are different events on the server, and only the app can tell them apart. It bites in a journey that is not unusual. Somebody taps a link, has no app, installs, then taps the link again. The second tap opens the app and delivers the ordinary open immediately; the deferred open follows a moment later, once the claim comes back. The report that completes the install funnel was the one thrown away, in exactly the case that stage exists to show. The flag is part of the key now. Reporting the same thing twice is still suppressed, which is all the dedupe ever claimed to do. Found by review rather than by a test, because on three platforms the rule was only covered for the URL case and on Android it was not covered at all.
0.7.1 Adds PrivacyInfo.xcprivacy, declaring the UserDefaults required-reason API (CA92.1) and the six data types the SDK can send. Tracking is declared false with no tracking domains. The manifest is wired into Package.swift resources so it reaches consuming apps.
Tear down with destroy, the name the other SDKs use Teardown was called three different things across the five SDKs: shutdown here and on Android, destroy on React Native and web, dispose on Flutter. Same job, three words, and an app sharing code across platforms had to remember which one it was holding. destroy is the name everywhere now. shutdown does the same thing and still works: it is what this SDK shipped, breaking it would serve nobody, and it is meant for deprecation only once moving off it is a one-line change rather than a surprise. Tests check the resulting state rather than trusting that one still calls the other: both clear the shared instance, both allow configuring again afterwards, and calling destroy on an SDK that was never configured does nothing rather than failing. Not compiled locally: no Swift toolchain on this machine. Every symbol was checked against its declaration, and CI builds and tests this on macOS.
PreviousNext