Repository navigation
Persist install state for SDK 0.3.0 - #2
Merged
Merged
Conversation
Store installId, tracked flag, attribution id and offer via optional AsyncStorage so trackInstall posts once per install, cold launches restore values, and identify sends the stored attributionId. Add debug logging with redacted API keys, Jest coverage, changelog and package version bump. Co-authored-by: Kenny Ye <KennyYe@users.noreply.github.com>
Document Expo and bare RN install commands that include AsyncStorage, and spell out that without it each cold launch posts a new ingestInstall. Co-authored-by: Kenny Ye <KennyYe@users.noreply.github.com>
KennyYe
marked this pull request as ready for review
October 9, 2026 13:45
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.
Summary
Prepares
@tapapplink/react-native@0.3.0so install tracking survives cold launches. Does not tag or publish.Changes
installId, tracked flag, attribution id and offer via optional peer@react-native-async-storage/async-storagetrackInstallposts/ingestInstallonce per install (body includesinstallId); later launches return stored valuessetAppUserId/ identify hydrate first and send the storedattributionIddebugconfigure flag logs request, response and stored state with the API key redactedpackage.jsonto0.3.0and update the changelog so a futurev0.3.0tag will pass the release workflow checknpx expo installfor Expo; npm/yarn for bare RN)Why AsyncStorage
The existing native module is Android-only. A SharedPreferences-style store there would not help iOS or Expo iOS builds. AsyncStorage is the usual cross-platform store for Expo and bare React Native, so one path covers both platforms. It remains an optional peer at the package level (SDK still loads without it), but docs treat it as required for correct install dedupe.
Out of scope
No tag, no npm publish. Kenny can cut
v0.3.0after merge when ready.Status
GitHub Actions CI on this branch: both jobs green (JS checks + Android compile).