docs: process user input from flows (all 7 SDK platforms) - #522
Draft
eandreeva-twr wants to merge 1 commit into
Draft
docs: process user input from flows (all 7 SDK platforms)#522eandreeva-twr wants to merge 1 commit into
eandreeva-twr wants to merge 1 commit into
Conversation
Flows report the values users type and select to the app through the SDK's analytics callback, as a `flow_user_input` event carrying a JSON-string payload. Add "Process data from flows" for all seven SDK platforms, covering how to register the callback, decode the payload, and what each element type puts in `value`. Two shared reusables carry the parts that are identical across platforms: the value-shape table and the delivery limitations. Point each handling-events article at its platform's new guide, alongside the screen-view pointer already there.
eandreeva-twr
force-pushed
the
docs/flow-input-data
branch
from
August 20, 2026 10:15
d1f3523 to
5f59025
Compare
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.
Flows report the values users type and select to the app through the SDK's analytics callback, as a
flow_user_inputevent. This is the second half of the flow analytics work — screen views shipped separately and are already documented on main.Rebased onto main after the screen-view guides merged, so this now carries only the user-input half: 23 files, additions only.
New articles
"Process data from flows" for iOS, Android, Flutter, React Native, Capacitor, Unity, and Kotlin Multiplatform — added to each Flows & paywalls sidebar right after "Track screen views".
Each covers registering the callback, decoding the payload, the value shape per element type, delivery limitations, and three use cases: registering users on your own backend, enriching the Adapty profile, and segmenting which flow a user sees later.
Two shared reusables hold what is identical across platforms — the element-type/value table and the delivery limitations — so the contract has one home rather than seven. The payload is versioned (
version: 1), so a v2 is expected.Each handling-events article now points at its platform's guide, alongside the screen-view pointer already there.
Per-platform differences worth review
These are the places a copy-paste sweep would have got wrong:
payloadis a JSON string nested inside one. Both steps are shown.updateProfile({ params: … })— where React Native passes the object directly.setCustomStringAttribute(value, key)vsSetCustomStringAttribute(key, value).Every API name and signature was verified against the SDK source, not inferred.
Why this is still a draft
The backend transformer change that emits
flow_user_inputis not merged, and product/privacy approval for sending raw text, email, and phone values to client code with no opt-out is still open. If that review adds an opt-out or trims which fields are sent, the "you don't set anything up in the builder" framing in all seven intros needs reworking. Please don't merge before the transformer ships.Two things the docs say that reviewers should sanity-check:
element_idis not unique across screens; the key isinstanceId+element_id.Verification
check-mdx-parseclean across 5,970 files,lint-mdxOK,check-links --diff0 broken and 0 stale over 233 links. Every sidebar entry checked to resolve to a real file.