Use one versioned, framework-neutral event contract across Swift, Kotlin, React Native and Flutter. Adapters should emit the same names and required properties, with the same funnel tested in CI, simulators, emulators and remote builds.
Start with a versioned event contract
The contract is the boundary between product meaning and platform implementation. Define each event once, give it a stable name, document its required properties, and assign a version before any SDK adapter is written. Swift, Kotlin, React Native and Flutter can then implement the same contract without inventing separate telemetry models.
At Respectlytics, this approach fits our privacy-first design. We track events, not people, store only five fields, and reject personal data by design. The event contract must therefore describe product behaviour without relying on a user identity, device identifier or other personal identifier. This is also why naming discipline matters. A clear event model gives product and engineering teams useful conversion insight without turning analytics into a record of individual users.
An illustrative contract for a purchase flow might define checkout_viewed, payment_submitted and purchase_completed. The contract could require a flow version, surface, step and outcome, provided those properties fit the approved five-field schema. The names describe what happened in the product. They do not describe the view class, the operating system, the framework or the developer who implemented the event.
The contract should state the event boundary as well. checkout_viewed might mean that the checkout screen became usable, not merely that a route was created. payment_submitted might mean that the user confirmed the payment form, not that a button received a tap. purchase_completed should have a defined success condition. These distinctions prevent a funnel from changing simply because one platform renders a screen differently.
Make names and properties framework neutral
The naming section should define the same vocabulary for every client. Use stable product terms, singular meanings and controlled values. Avoid names such as signup_button_tapped_ios or react_native_checkout_started. Those names make implementation details part of the data model and encourage platform-specific funnels.
A useful contract records the business action first. The adapter then translates that action into the syntax of the relevant SDK. Swift and Kotlin may use different method calls. React Native and Flutter may pass events through different bridges. None of those differences should alter the event name, its required properties or the point at which the event fires.
For each event, document five items:
- The event name and its exact meaning.
- The point in the user flow where it is sent.
- The required properties and their permitted values.
- The conditions under which the event must not be sent.
- The contract version and its compatibility rule.
The third item deserves particular care. Free text creates different values for the same state, while uncontrolled properties make segment comparisons hard to interpret. Use enumerated values where possible. If one client sends payment_method as card and another sends credit_card, the resulting comparison is not a product insight. It is a naming defect.
Keep optional properties genuinely optional. A property should not be marked optional merely because one framework has not implemented it yet. If the property is necessary for interpreting the funnel, make it required and fail the adapter test when it is absent. If it is useful only for a particular screen variant, document its scope and do not treat missing values as a different product outcome.
Keep funnels identical across implementations
A funnel is comparable only when its entry and completion events mean the same thing on every implementation. Start with a canonical funnel definition in the repository, then use it as a fixture for native and cross-platform tests. The fixture should assert event order, required properties, forbidden personal data and the expected contract version.
The adapter should not decide product meaning. A React Native wrapper should call the same checkout_viewed definition as the Swift client. A Flutter implementation should not send a second event because its navigation lifecycle has an extra callback. If a lifecycle callback can fire more than once, the adapter must apply the contract's duplication rule rather than passing every callback to analytics.
This distinction becomes important when a product mixes native views and shared code. Discord's client rewrite is a useful illustration of how much an application architecture can change. The project moves away from Electron and React Native, keeps native mobile views, and shares application code through Rust. Its early internal figures included desktop memory use of about 290 MB, a cold start described as near instant compared with 5.5 seconds, and mobile loading under two seconds compared with approximately five seconds in the older app. The reported Discord architecture and measurements show why analytics should not be attached to a particular rendering layer. A faster native view or a new shared core should preserve the same product events unless the user flow itself has changed.
For every funnel, compare the same sequence on Swift, Kotlin, React Native and Flutter. Check both the success path and the interrupted path. For example, a payment flow should test a successful submission, a validation error, a user leaving and returning, and a retry. The event names may remain stable across these cases, while outcome values distinguish what happened. That gives product teams a meaningful comparison instead of a platform comparison disguised as conversion data.
Test telemetry in remote builds and parallel workflows
Telemetry needs its own test discipline when builds run remotely or several changes are developed at once. Compilation proves that code can build. It does not prove that the event contract is intact.
Shopify reported on November 17, 2026 that three or four parallel AI workflows were enough to exhaust a developer laptop. Its Remote Dev system uses remote Macs for iOS builds and simulators, Linux virtual machines for Android emulators, and separate environments for parallel agent tasks. The environments can build applications, run tests, interact with simulators, collect screenshots and create pull requests. The report on Shopify's remote mobile development workflow gives a practical reason to test telemetry outside one developer machine.
Our recommendation is to make the event contract a versioned artifact that travels with every build. A remote job should record the commit, framework, platform, contract version and test result. The same funnel fixture should run against an iOS simulator, an Android emulator, a React Native build and a Flutter build. The test output should make it possible to see whether a failure came from the app flow, the adapter or the analytics transport.
Parallel work also requires isolation. Each build should write its event output to a separate test destination so that one agent cannot satisfy another agent's assertions. Test code should be protected from the runner that executes it. Commentary on Shopify's setup raised a specific concern that an agent with permission to modify its own tests might rewrite a failing test until it passes. That concern is discussed in the same Remote Dev report. For analytics, the practical control is simple: the agent may change application code, but the contract fixtures and their expected results should be reviewed or protected separately.
This matters as assistants take on more of the mobile workflow. Snapchat's Easy Lens CLI allows assistants such as Claude Code, Cursor and Codex to build and test Lens experiences, address errors, generate previews and publish updates from Mac, Windows and Linux workflows. The report on Snapchat's assistant-based Lens development points to a wider testing need. When an assistant changes a flow, CI must check event semantics as well as build status. A passing build is not evidence that a funnel still measures the same journey.
Measure foldable layouts without changing event meaning
Device variation should be measured as context around a stable event, not by creating a new event for every layout. A foldable device may show a single pane, a wider multi-pane layout or a changed posture. The action can still be checkout_viewed or payment_submitted.
Google Play plans to require basic foldable support from April 2027. Tier 3 requires apps to fill the screen without letterboxing, preserve scroll position, text input and media playback during rotation, resizing and folding or unfolding, and support multi-window environments. Google Play will also require foldable screenshots for new apps and updated store listings. The published foldable requirements make layout testing a product concern, not only a visual quality task.
Test the same contract event through each supported layout state. Confirm that resizing does not send a second screen-view event unless the contract explicitly defines that behaviour. Confirm that a split layout does not turn one user action into two button events. Confirm that a preserved form state does not look like a new checkout start.
If layout matters to a product decision, reserve a controlled layout property in the contract before implementation. Use values such as single_pane, dual_pane or tabletop only if the product has a clear use for them and the schema can support them. Do not create separate event names such as checkout_viewed_foldable. That would make a device change look like a change in user intent and would split the funnel unnecessarily.
Google also states that new and updated apps will need to target Android 17, API level 37, by August 2027. The exact release schedule is not a reason to postpone contract testing. Add the supported device states to the build matrix as they become part of the product, then keep the event assertions unchanged across those states.
Treat flow changes as contract changes
A flow change needs an explicit decision about event compatibility. If the user action still has the same meaning, retain the event name and update the implementation. If the action is genuinely different, add a new event and document why the old one remains, is deprecated or is removed.
Never silently reuse purchase_completed for a page that only confirms an order request. Never keep checkout_viewed when the screen now represents a different stage of the journey. A stable name is valuable only when its meaning remains stable.
Use the contract version to make the change visible. A presentation change can keep the current version when the event boundary and properties remain unchanged. A change to the completion condition, required properties or permitted values should create a reviewed contract change. Before release, run the previous and new funnel definitions against representative flows so that historical comparisons are not misread.
This is particularly important for Respectlytics customers moving between native and cross-platform clients. Our platform automatically surfaces funnels, drop-off points and segment comparisons across dimensions such as platform, country, engagement depth and hour. Those insights depend on comparable events. A new client should not introduce a new meaning under an old name simply because the implementation was rebuilt.
A practical implementation sequence
Use the following sequence for a new app or a migration from an existing analytics system:
- Write the event contract in a version-controlled repository, including names, meanings, properties, prohibited data and compatibility rules.
- Build one adapter per framework, with Swift, Kotlin, React Native and Flutter tests using the same fixtures.
- Add CI checks for missing properties, invalid values, duplicate events, contract version and forbidden personal data.
- Run the same funnel on remote iOS and Android environments, simulators, emulators and the supported device layouts.
- Review every flow change for event meaning before merging application changes.
- Inspect conversion and drop-off results after release, with platform and other approved segments compared under the same definitions.
Open source makes this process easier to inspect. Respectlytics provides an MIT-licensed SDK and an AGPL-3.0 self-hostable server, with native SDKs for Swift and Kotlin and support for React Native and Flutter. Teams in healthcare, finance and education can use the same contract discipline while keeping the analytics model focused on product events rather than personal identities.
The central engineering decision is not which framework renders a screen. It is whether every implementation reports the same product action with the same meaning. A versioned contract, platform adapters, protected CI fixtures and explicit handling of layout and flow changes give teams a dependable basis for conversion analysis as their mobile architecture evolves.
Sources
- How Shopify Orchestrates AI-Powered Mobile App Development without Overloading Developers' Machines
- Discord Rewrites Desktop and Mobile Clients in Rust Using Zed's GPU-Accelerated Rendering Framework
- Google Play wants Android apps to nail foldable basics by April 2027
- Snapchat now lets developers build AR Lenses with AI assistants like Claude Code and Cursor