Skip to content

fix(deeplink): deliver the deferred deep link once, on the launch that reports the install - #10

Merged
onamfc merged 1 commit into
mainfrom
fix/deferred-deep-link-once
Oct 21, 2026
Merged

onamfc merged 1 commit into
mainfrom
fix/deferred-deep-link-once

Conversation

@onamfc

@onamfc onamfc commented Oct 21, 2026

Copy link
Copy Markdown
Member

What

onDeferredDeepLink is called once, on the launch that reports the install: with the link's data, or null for an organic install. It can be registered before or after init(); a callback registered after the install is reported gets the same result. Later launches don't call it. getInstallData() still returns the install's link data at any time.

This matches the iOS, Android, Expo and Flutter SDKs, and the README, which already described the callback as called on first launch.

  • DeferredDeepLink holds the callback and the install's result; reportInstall (first launch only) delivers to it.
  • An organic install now reaches a callback registered after await init() as null.

Tests

DeferredDeepLink: a callback registered before or after delivery, null for an organic install, and nothing on a launch that does not report the install. LinkFortySDK imports react-native, which the test runner cannot parse, so the delivery lives in its own module.

…t reports the install

onDeferredDeepLink is called with the link's data, or null for an organic
install, whether it is registered before or after init(). Later launches
don't call it; getInstallData() still returns the install's link data.
@onamfc
onamfc force-pushed the fix/deferred-deep-link-once branch from e874e84 to 941bfec Compare October 21, 2026 14:19
@onamfc
onamfc merged commit 4f656b4 into main Oct 21, 2026
1 check passed
github-actions Bot pushed a commit that referenced this pull request Oct 21, 2026
## <small>1.7.1 (2026-10-21)</small>

* fix(deeplink): deliver the deferred deep link once, on the launch that reports the install (#10) ([4f656b4](4f656b4)), closes [#10](#10)
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 1.7.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants