Skip to content

docs: add 4.5.0 automatic push integration flags to Android migration guide + README#520

Merged
glenn-klaviyo merged 8 commits into
feat/auto-push-trackingfrom
docs/mage-897-native-sdk-migration-guide
Jul 24, 2026
Merged

docs: add 4.5.0 automatic push integration flags to Android migration guide + README#520
glenn-klaviyo merged 8 commits into
feat/auto-push-trackingfrom
docs/mage-897-native-sdk-migration-guide

Conversation

@glenn-klaviyo

@glenn-klaviyo glenn-klaviyo commented Jul 22, 2026

Copy link
Copy Markdown

Description

Adds Android SDK 4.5.0 migration-guide and README documentation for the two automatic push-integration manifest flags. Android-only — iOS is covered separately in the Swift SDK (companion PR below).

Changes

  • MIGRATION_GUIDE.md — new # 4.5.0 section (Android only):
    • automatic_push_open_trackingopt-in, default off. Enable via com.klaviyo.push.automatic_push_open_tracking="true".
    • automatic_push_token_forwardingdefault on, opt out via ="false". Formalizes the SDK's existing automatic token forwarding, so no action is required to preserve current behavior.
    • Android-only rollout summary table.
    • Note that with token forwarding enabled, the token is forwarded at initialization, on app foreground, and on FCM refresh — which can create an anonymous profile until identifiers are set (expected behavior).
  • README.md — Anonymous Tracking callout describing default-on token forwarding, with a link to the migration guide for opting out.

Due Diligence

  • Docs only — no code or public API changes.
  • Manifest key names verified against the implementation.

Release / Versioning

Test Plan

Verify rendered Markdown on GitHub; confirm manifest key names match the implementation.

Related Issues/Tickets


🤖 Generated with Claude Code

@coderabbitai

coderabbitai Bot commented Jul 22, 2026

Copy link
Copy Markdown

Review Change Stack

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

The documentation adds SDK 4.5.0 migration guidance for Android automatic push open tracking and token forwarding manifest flags, including rollout defaults and anonymous profile behavior. The README updates its Anonymous Tracking section with corresponding token forwarding details.

Changes

Automatic push documentation

Layer / File(s) Summary
Migration flags and rollout defaults
MIGRATION_GUIDE.md
Adds 4.5.0 migration guidance for manifest-controlled automatic push behaviors, rollout defaults, configuration metadata, and anonymous token forwarding.
Anonymous tracking guidance
README.md
Documents default-on token forwarding, registration before profile identification, anonymous profile creation, and migration opt-out guidance.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Suggested reviewers: ab1470

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly summarizes the docs update for Android automatic push flags in the migration guide and README.
Description check ✅ Passed The description matches the template well, covering summary, due diligence, release notes, test plan, and related issues.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/mage-897-native-sdk-migration-guide

Comment @coderabbitai help to get the list of available commands.

@glenn-klaviyo glenn-klaviyo added the SDK Auto Integration A label for the SDK Auto Integration project - automatic push open tracking and token forwarding label Jul 22, 2026
glenn-klaviyo and others added 2 commits July 22, 2026 17:50
…DME note

- Add migration guide entry for `automatic_push_open_tracking` (opt-in, default off)
  and `automatic_push_token_forwarding` (default on, pending #516/MAGE-937 merge)
- Token-forwarding entry is explicitly marked pending klaviyo-android-sdk#516;
  finalize on merge before releasing docs
- Add two-stage rollout summary table covering both Android and iOS flags
- Add anonymous-profile note to README Anonymous Tracking section

Relates to MAGE-897.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
MAGE-937 (#516) is landing imminently; remove the "pending merge" note,
heading suffix, and table caveat, and fix the README anchor link.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@glenn-klaviyo
glenn-klaviyo changed the base branch from master to feat/auto-push-tracking July 22, 2026 21:51
@glenn-klaviyo
glenn-klaviyo force-pushed the docs/mage-897-native-sdk-migration-guide branch from b75cbc9 to fcc8cc1 Compare July 22, 2026 21:51
Bare `#anonymous-tracking` fragment resolved against MIGRATION_GUIDE.md;
link explicitly to ./README.md#anonymous-tracking.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@glenn-klaviyo
glenn-klaviyo marked this pull request as ready for review July 23, 2026 14:18
@glenn-klaviyo
glenn-klaviyo requested a review from a team as a code owner July 23, 2026 14:18
@klaviyoit
klaviyoit requested a review from ab1470 July 23, 2026 14:18

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@MIGRATION_GUIDE.md`:
- Around line 29-33: Correct the documentation to describe
automatic_push_token_forwarding as opt-in because an absent manifest value is
treated as false: update MIGRATION_GUIDE.md lines 29-33 to remove the default-on
wording and clarify manual control, update MIGRATION_GUIDE.md lines 48-49 to
show the 4.4.0 default as disabled, and update README.md lines 350-353 to remove
default-on and unconditional anonymous-profile claims.
- Around line 53-55: Update the anonymous-profile token-forwarding documentation
to describe the implementation-supported timing: the SDK fetches the current
token during initialization and when the app returns to the foreground, rather
than promising forwarding immediately on every FCM delivery. Apply this wording
change in MIGRATION_GUIDE.md lines 53-55 and README.md lines 351-352.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Enterprise

Run ID: db606898-0f7f-4c31-b537-46e0c1888d37

📥 Commits

Reviewing files that changed from the base of the PR and between 816f86c and 509b789.

📒 Files selected for processing (2)
  • MIGRATION_GUIDE.md
  • README.md

Comment thread MIGRATION_GUIDE.md
Comment thread MIGRATION_GUIDE.md Outdated
glenn-klaviyo and others added 3 commits July 23, 2026 10:55
Per maybeAutoRegisterPushToken (called from initialize and on app foreground)
plus onNewToken: the SDK forwards the current token at initialization, on
foreground, and on FCM token refresh — not only "as soon as FCM delivers one".

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The automatic push behaviors ship in the upcoming 4.5.0 minor, not 4.4.0.
Updated the migration guide section and the README anonymous-profile note;
left install snippets and unrelated version references untouched.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@MIGRATION_GUIDE.md`:
- Around line 5-6: Align all documented release references with the Android SDK
4.4.0 target: update the migration section and rollout table in
MIGRATION_GUIDE.md, and change the README.md SDK version qualifier to 4.4.0+. If
the intended release is actually 4.5.0, confirm and update the PR objective
instead.
- Around line 9-11: Update the SDK 4.5.0 introduction in MIGRATION_GUIDE.md to
clarify that automatic push-token forwarding is enabled by default. Explain that
integrations retaining manual token management may need to opt out or remove
redundant calls, while integrations accepting the default behavior require no
changes.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Enterprise

Run ID: 6d704781-4bdf-4845-a643-fa8a5879cde7

📥 Commits

Reviewing files that changed from the base of the PR and between 6e66b4c and 8aa04a6.

📒 Files selected for processing (2)
  • MIGRATION_GUIDE.md
  • README.md

Comment thread MIGRATION_GUIDE.md
Comment thread MIGRATION_GUIDE.md Outdated
- Remove iOS flag rows from the rollout summary (Android guide should not
  document iOS behavior).
- Reword the intro to distinguish the opt-in open-tracking flag from the
  default-on token forwarding, and note the manual-control opt-out
  (addresses CodeRabbit).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@glenn-klaviyo glenn-klaviyo changed the title docs: add 4.4.0 automatic push tracking flags to migration guide and README docs: add 4.5.0 automatic push integration flags to Android migration guide + README Jul 23, 2026
Comment thread MIGRATION_GUIDE.md Outdated
Comment on lines +15 to +26
### `automatic_push_open_tracking` (opt-in, default **off**)

When enabled, the SDK automatically records push-open events without requiring you to call
`Klaviyo.handlePush` manually in your notification interaction handler.

To enable, add the following to the `<application>` element of your `AndroidManifest.xml`:

```xml
<meta-data
android:name="com.klaviyo.push.automatic_push_open_tracking"
android:value="true" />
```

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

small thing, but I would put the instructions in the README, and point the migration guide to the README for how to opt in/out of the flag.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice suggestion! will make this change

@evan-masseau evan-masseau left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Phrasing's fine, suggest swapping location of instructions

…here

Per review feedback: configuration instructions (XML snippets) belong in
the README alongside the existing Option A setup guide; the migration
guide now links there instead of duplicating them.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@glenn-klaviyo
glenn-klaviyo merged commit d852a3c into feat/auto-push-tracking Jul 24, 2026
16 checks passed
@glenn-klaviyo
glenn-klaviyo deleted the docs/mage-897-native-sdk-migration-guide branch July 24, 2026 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

SDK Auto Integration A label for the SDK Auto Integration project - automatic push open tracking and token forwarding

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants