Skip to content

main -> dev-ios27 - #552

Merged
shushinde merged 26 commits into
dev-ios27from
main
Oct 27, 2026
Merged

shushinde merged 26 commits into
dev-ios27from
main

Conversation

@shushinde

Copy link
Copy Markdown
Contributor

Description

Related Issue

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have signed the Adobe Open Source CLA.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

akhiljain1907 and others added 26 commits September 27, 2026 22:46
Introduce a dedicated path that lets operational device attributes
(timezone, push token, Live Activity tokens) be sent to the Edge Network
without being gated by collect consent, driven entirely by a Launch rule.

Routing
- Listen for a dedicated event: type "com.adobe.eventType.edgeBypassConsent"
  with the standard requestContent source (Event.isBypassConsentEvent).
  These events are produced by the rules engine's forward-operational-data
  consequence; Edge owns the type constant and the routing.
- Queue such hits on a separate, always-on bypassConsentHitQueue that is
  started at init and never wired to collect-consent changes, so it is
  never suspended or cleared. The primary experience-event queue and its
  consent gating are unchanged.

Request
- Add EdgeRequestType.deviceAttributes ("mobile/device-attributes").
- Build the request body via RequestBuilder.generateNoConsentPayload: pass
  the producer's event data through unchanged and enrich it with the
  SDK-owned xdm (implementationDetails + identityMap) and meta.state.
  NoConsentEdgeHit carries this dynamic payload (no typed model, no
  response streaming).
- Resolve the endpoint from the app's Edge configuration (edge.configId,
  edge.environment, edge.domain) exactly like the interact/set-consent
  paths; drop the hit with a warning if edge.configId is missing.

Response
- Treat HTTP 202 (Accepted) as a success response so device-attributes
  hits are completed rather than logged as an unrecoverable error and
  retried. Existing 200/204/207 handling is unchanged.

Tests
- Add unit tests for isBypassConsentEvent, bypass-consent queue routing
  under collect consent = no, the generateNoConsentPayload body shape,
  the device-attributes endpoint/configId selection, and 202-as-success.
This reverts commit ed8b25c.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Move device attributes (edgeBypassConsent) processing into bypass-owned types under Sources/DeviceAttributes: hit processor, request builder, network sender, response handler, constants and event helpers. Shared interact files return to main, except the deviceAttributes endpoint case and bypass wiring in Edge and EdgeState.

- Success is 200/202; recoverable errors retry without a response event; other outcomes publish failed/network.
- Success responses apply only locationHint:result (EdgeNetwork) and state:store handles.
- Identity reset no longer clears the bypass queue; hits queued before the persisted reset date are skipped.
- The bypass queue starts after Edge bootup.
- Response event is named Device Attributes Response.
Device attributes requests now wait on the same Configuration and Identity shared states as experience and consent events. Removes the dedicated readiness helper and its missing-queue exception.
- Check the latest Edge Identity ECID before each send; drop with identityChanged if it changed, retry if Identity is unavailable.
- Remove the reset-date skip; apply state:store only while the ECID is unchanged.
- Consolidate device-attributes constants under EdgeConstants.DeviceAttributes and align names with Android.
Isolated consent-independent device-attributes endpoint path to Edge Network
Staging -> Main (5.3.0 Release)
@shushinde
shushinde merged commit 73edecb into dev-ios27 Oct 27, 2026
13 of 14 checks passed
@codecov

codecov Bot commented Oct 27, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 99.18699% with 3 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...eviceAttributes/DeviceAttributesHitProcessor.swift 98.43% 2 Missing ⚠️
Sources/Edge.swift 98.80% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

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.

4 participants