Skip to content

Capture maps (google, mapbox, etc.) in Session Replay #4862

Description

@romtsn

Description

There's a discord thread about mapbox not working https://www.npmjs.com/package/@rnmapbox/maps. That's probably due to them doing rendering in native directly to opengl. My impression was that it's possible to capture this still, because I have seen google maps in some replays. But we'd have to investigate mapbox.

Activity

  1. romtsn commented on Nov 4, 2025

    @romtsn
    ContributorAuthor

    Investigated this and the results are the following:

    SDK / Strategy PixelCopy Canvas
    Google Maps ✅ ❌
    Mapbox ❌ ❌

    So only PixelCopy + GoogleMaps is supported. Mapbox likely can't be captured because it uses a custom TextureView/GL stuff.

    However, there's a way to capture those for both in both strategies I think, but we'll likely have to introduce a separate replay module that compilesOnly google maps and mapbox. Then at runtime we'd check if the hierarchy contains one of those, and then use the snapshot() API which both expose, and which returns a Bitmap snapshot of the current map view that we could use as replay frame.

    I'm going to convert this issue into a feature request and backlog it for now.

  2. changed the title [-]Investigate if we can capture maps (google, mapbox, etc.) in Session Replay[/-] [+]Capture maps (google, mapbox, etc.) in Session Replay[/+] on Nov 4, 2025
  3. added and removed on Nov 4, 2025
  4. linear commented on Nov 4, 2025

    @linear
  5. github-actions commented on May 6, 2026

    @github-actions
    Contributor

    A PR closing this issue has just been released 🚀

    This issue was referenced by PR #5333, which was included in the 8.41.0 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions