Skip to content

fix: Android deferred deep linking + bump Android SDK to 0.0.5 - #4

Merged
ahsanalidotme merged 1 commit into
mainfrom
fix/android-deferred-sdk-0.0.5
Aug 1, 2026
Merged

fix: Android deferred deep linking + bump Android SDK to 0.0.5#4
ahsanalidotme merged 1 commit into
mainfrom
fix/android-deferred-sdk-0.0.5

Conversation

@ahsanalidotme

Copy link
Copy Markdown
Contributor

Android deferred deep linking fix

The example configured autoTrackInstall: false globally (for the iOS paste-button flow). On Android there's no paste button, so nothing ever triggered the install, and the SDK's setConsent(true) only fires the install when autoTrackInstall is true — so no install was sent and the backend never resolved the deferred link. Now autoTrackInstall is platform-aware: Android auto-tracks (deferred resolves via the Play Install Referrer), iOS still waits for the paste tap. The wrapper itself was fine — real RN Android apps use the default autoTrackInstall: true.

Also in this PR

  • Android native SDK → io.linktrail:sdk:0.0.5 (from 0.0.4); wrapper package → 0.0.3.
  • Simulator routing fix: the "route after the sheet dismisses" effect cleared its pending state synchronously, which re-ran the effect and cancelled the timer before it fired — so tapping a 🔗 scenario never navigated (both platforms). Now it clears after routing.
  • pnpm fix: added example/.npmrc with node-linker=hoisted so RN's Gradle plugin path (../node_modules/@react-native/gradle-plugin) resolves — pnpm android was failing without it.
  • Release signing: example reads the upload keystore creds from local.properties (gitignored) + android:aab / android:apk / android:clean scripts.
  • CHANGELOG: added 0.0.3, back-filled 0.0.2.

Verified

  • tsc passes; Android assembleDebug builds an APK resolving io.linktrail:sdk:0.0.5.

Note

The example now uses pnpm (.npmrc + pnpm-lock.yaml), but example/package-lock.json is still tracked — worth removing in a follow-up so there's one lockfile.

- Android native SDK -> io.linktrail:sdk:0.0.5; wrapper 0.0.3
- Example: autoTrackInstall is platform-aware — Android auto-tracks so deferred
  attribution resolves (no paste button there); iOS waits for the paste tap
- Example: fix simulator "route after dismiss" (the timer was cancelled before
  it fired, so tapping a scenario never navigated on either platform)
- Example: pnpm node-linker=hoisted so RN's Gradle plugin path resolves
- Example: release signing read from local.properties + android:aab/apk/clean scripts
- CHANGELOG: add 0.0.3, backfill 0.0.2
@ahsanalidotme
ahsanalidotme merged commit cec98af into main Aug 1, 2026
7 checks passed
@ahsanalidotme
ahsanalidotme deleted the fix/android-deferred-sdk-0.0.5 branch August 1, 2026 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant