-
Notifications
You must be signed in to change notification settings - Fork 38
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
React Native Session Replays missing network requests #276
Comments
Hello @jrusso1020 checking this out now. |
The reason is that RN uses the |
Thanks for the quick update and work here @marandaneto ! will stay up to date and happy to try out any fix you have |
I've opened this issue for later refactoring PostHog/posthog-ios#204 |
@marandaneto just tested it out with a local build and looks like it's working now for us thanks for the quick fix! |
Bug Description
Bug description
When enabling react native session replays, we are noticing that only network requests from third party SDKs are being recorded. For example, requests to revenue cat or sentry which come from their own react native packages.
Network requests to our own backend are not being recorded, throughout the entire session. We use
fetch
for requests in our react native application.here's a link to our screen recording for help debugging
Please describe.
If this affects the front-end, screenshots would be of great help.
If you are on PostHog Cloud it would be really valuable if you can share any links where the problem occurs. This speeds up our ability to troubleshoot tremendously.
How to reproduce
Additional context
Fetch
We initialize our API client to use fetch like so
And then make requests like so, similar for 'get' requests as well
the
Content-Type
will either beapplication/json
ortext/plain
(used for sending base64 encoded protocol buffers)And example fetch request
Posthog Initailization
We enable the posthog client separately and then pass this into the posthogProvider
Package versions
We don't technically use expo to build our app but including it as well
Testing on iOS 18 (built and running on an actual device, not a simulator)
Debug info
- [x] PostHog Cloud, Debug information: Session: https://us.posthog.com/project/sTMFPsFhdP1Ssg/replay/01924347-1cab-7922-be47-db03acae31e6?t=4771 Admin: http://go/adminOrgUS/01910e4f-b970-0000-fa38-08ea1e2e4866 (project ID 82677) Sentry: http://go/sentryUS/82677
The text was updated successfully, but these errors were encountered: