Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Session Replays on Android not recording/logging requests #18

Closed
jrusso1020 opened this issue Dec 11, 2024 · 1 comment
Closed

Session Replays on Android not recording/logging requests #18

jrusso1020 opened this issue Dec 11, 2024 · 1 comment

Comments

@jrusso1020
Copy link

We had a very similar issue for iOS that was fixed by the team PostHog/posthog-js-lite#276

The previous issue includes info on our app setup and how we make requests

The setup is exactly the same although our package versions are different now

posthogInstance = new PostHog(config.posthog.apiKey, {
    host: 'https://us.i.posthog.com',
    disableGeoip: true,
    // Comment out the line below to enable PostHog in dev
    disabled: __DEV__ || !config.posthog.enabled, // Disable in dev or if not enabled in config
    enableSessionReplay: true,
  });

Package Versions

expo@npm:51.0.39 (via npm:~51.0.39)
posthog-react-native@npm:3.3.9 [2f28e] (via npm:^3.3.9 [2f28e])
posthog-react-native-session-replay@npm:0.1.6 [2f28e] (via npm:^0.1.6 [2f28e])
react-native@npm:0.74.5 [2f28e] (via npm:0.74.5 [2f28e])

@marandaneto
Copy link
Member

It is iOS only for now https://posthog.com/docs/session-replay/network-recording?tab=React+Native
You cannot "monkeypatch" the Android bits at runtime, only with bytecode manipulation.
+1 on PostHog/posthog-js-lite#310 please so we can prioritize.

@marandaneto marandaneto closed this as not planned Won't fix, can't repro, duplicate, stale Dec 12, 2024
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

No branches or pull requests

2 participants