You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Capture maps (google, mapbox, etc.) in Session Replay #4862
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.
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.
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
Activity
romtsn commentedon Nov 4, 2025
Investigated this and the results are the following:
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 aBitmapsnapshot 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.
[-]Investigate if we can capture maps (google, mapbox, etc.) in Session Replay[/-][+]Capture maps (google, mapbox, etc.) in Session Replay[/+]linear commentedon Nov 4, 2025
JAVA-221
chore(samples): Add Mapbox MapsActivity to exercise SurfaceView repla…
github-actions commentedon May 6, 2026
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.