-
-
Notifications
You must be signed in to change notification settings - Fork 342
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
Attach screenshot #2362
Comments
It's not just adding the On iOS, native hard crashes would work, but the JS errors (even if it crashes the app) won't contain the screenshot, because we call On Android, We always store the envelope on the disk, and the file observer will pick it up and enrich the event with device context, that's already too late and the view might not be up to date anymore, leading to a false positive. I feel that getsentry/team-mobile#11 should be addressed first with this issue in mind. |
If we're triggering the screenshot from JS through the bridge it's possible the view will change, no? So possibly not exactly what was on the screen at that time? It's fine if that's the case, just good to understand and document it.
Not sure this one affects things as much. We can take care of screenshots on each layer: In JS if there's an error, we get a screenshot through the bridge and pass it down to the native layers in the envelope. It doesn't need to live in the JS-land either, we could do all of that in the bridge if that makes things easier. Would that work? So we need to figure out: |
If we
This is still an issue, we'd need to find a way to set the |
Add option
attachScreenshot
that when opt in, attached a screenshot on error events.The text was updated successfully, but these errors were encountered: