Repository navigation
fix(deeplink): deliver the deferred deep link only on the launch that reports the install - #17
Merged
Merged
Conversation
… reports the install onDeferredDeepLink was called on every launch with the attribution recorded at install, so an app had to remember that it had handled the link. It is now called once, on the install's launch, as in the other SDKs; the attribution stays available from getInstallData(). Version 0.4.0.
onamfc
force-pushed
the
fix/deferred-once
branch
from
October 21, 2026 03:23
346e500 to
09a460e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Builds on #16 (merged).
Summary
Behavior change.
onDeferredDeepLinkwas called on every launch with the attribution recorded at install, as documented, so an app whose callback navigated had to keep its own "already handled" flag. The iOS, Android, React Native and Expo SDKs call it once, on the launch that reports the install. Flutter now does the same:nullfor an organic install, as before. A callback registered afterinitialize()returns on that launch is still called immediately.getInstallData().Changes
DeepLinkHandler.deliverDeferredDeepLinkreturns early whenisNewInstallis false: no callback, no cached value to replay to a late-registered callback, no last-click open (unchanged).onDeferredDeepLinkKDoc and the README's deferred deep link section.^0.3.xkeep 0.3.2 (fix(events): succeed on the event endpoint's reply and send each queued event once #16) until they move to^0.4.0.Tests
a later launch delivers no deferred deep link: replacesa cached install does not replace last-click attribution, which asserted the per-launch delivery; it still checks last-click attribution isn't written, and thatgetInstallData()returns the cached link. Fails without the change.the launch that reports the install delivers the deferred deep link once.flutter test: 149 passed.flutter analyzeanddart format: clean.