Phone apps in Orion
Gaze and friction for the sessions people spend in your iOS and Android app.
Orion reads an app's session replays as PostHog's open-source SDKs record them: for iOS, Android, React Native and Flutter. Each visit's screens, taps and scrolls come over, and Orion predicts where each person looked on each screen and scores the visit for friction, as it does for a visit to a website on a phone.
Set it up
If your app already uses PostHog
- Turn on session replay in the app's PostHog SDK, and in your PostHog project's settings (Session replay).
- iOS (posthog-ios):
config.sessionReplay = true - Android (posthog-android):
config.sessionReplay = true - React Native (posthog-react-native): add
posthog-react-native-session-replay, andenableSessionReplay: truein the PostHog options - Flutter (posthog_flutter):
config.sessionReplay = true, and wrap the app inPostHogWidget
- iOS (posthog-ios):
- Press Connect PostHog in Orion, on the Setup screen or the Import page. App recordings come over with your website's, and new ones follow by themselves. See Connect PostHog to Orion.
If it doesn't
Use the same open-source SDK with no PostHog account: set its host to https://t.paradigmmachines.ai/ph and its API key to the key on Orion's Install page, and turn on session replay as above. Orion keeps what the SDK sends and passes it on nowhere. Visits show in Orion about 30 minutes after the person stops using the app.
The Setup screen's Recording an iOS or Android app? and the Install page both have the steps as words to paste into your coding agent.
What comes over
- Each app goes to a site of its own in Orion, named after the app, with its iOS and Android visits together. Sessions and the Overview show each visit as an iOS app or Android app visit on a phone; the Browser filter picks one or the other.
- Each screen the app showed, as the SDK recorded it: a picture of the screen, or its views drawn as boxes, text and images by older SDK versions. Taps, swipes and typing come with it, and the keyboard is drawn where it covered the screen.
- The app's screen views (
$screen) are its pages, named after each screen. - Tablets are read as phones, as for websites.
How Orion reads it
- Each screen goes to the phone gaze model as a phone's screen: whole, at its own shape, on a grey surround, never stretched.
- A tap is a tap for the friction score; a swipe is a scroll.
- A long session with many screens is thinned to at most 300 changes of the screen and 16 MB of pictures: changes close together are shown together. The screen as it was is always kept before each tap.
- Recommendations read app visits as they read visits to a website on a phone.
Privacy
- The pictures are masked by the app's SDK before they leave the phone: text fields and images by default, and any view you mark (ph-no-capture on iOS and Android,
PostHogMaskWidgetin Flutter). Orion masks text it can read, and can't read text inside a picture, so keep the SDK's masking on for any screen with personal data. - Orion keeps the same as for a website: the replay and the screen views, taps, errors and the app's name, system and version. Never person profiles, IP addresses, console logs or network requests.
Good to know
- Only PostHog's SDKs for now. Apps recorded by Mixpanel, Amplitude, Datadog or Sentry aren't read yet.
- Recording is the SDK's: its sampling, minimum duration and masking decide what there is to read.
- Gaze on a phone app is predicted from the screens, swipes and typing, as for a phone's web visit: the model never saw your app's people, and their taps aren't given to it.
Support
Email ryan@paradigmmachines.ai. See also the privacy policy.