-
-
Notifications
You must be signed in to change notification settings - Fork 338
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 Replay - react-native-webview maskAllText #4126
Comments
Hi @ph8nt0m, this seems like a bug, the WebViews in RN Replays should be completely redacted by default. As we are not able to read the web elements from the native Android and iOS layers where the RN replays is recorded we decided to completely redact WebViews. |
As a park of reproducing the issue let's add https://github.com/react-native-webview/react-native-webview to our sample app. |
I see the same in my app but not always. @krystofwoldrich . Did this end up being a bug that has since been fixed. Do you have more insights into it. Would adding |
@hjonasson we currently have no mechanism of masking elements within the webviews, what we do instead is we mask the entire webview for now. Did you encounter this issue running on iOS or Android? |
@romtsn Both ... How can I mask the entire webview? |
@ph8nt0m if you're using SDK version 5.34.0 at least, they should be masked by default for both ios and android |
Thanks, I will check it. |
We have added a webview to our sample app in #4215 And both on iOS and Android the webviews are redacted. Currently we do not offer option to disable the webview redaction in RN. If your webviews are not redacted on the latest version of the SDK (both V5 or V6) please share with us an example of the JS code you use to create the webviews. |
@romtsn This was on Android. I can't see if it was all Androids if that matters but it looks to appear pretty consistently on Samsung phones. What is the best way to address it ASAP? I already filed a Zendesk ticket for it. |
@hjonasson please see #4126 (comment), it should already work in the latest versions of the RN sdk. If not please provide a reproducible sample. |
Thanks @romtsn. It should work, I know. We assumed that when we put it into production. However, it doesn't work. It doesn't reproduce locally but I have many production logs where I can see the full webview from the client. We have turned it off and deleted the logs as we should not be storing them in the first place. I can give you device types this was working on to investigate further. |
@hjonasson can you post a link to your project in sentry? |
Not here. We will take it through the higher-ups, they are reaching out to Sentry now. I will keep you updated. |
@hjonasson Alright, but please make sure to update to version 5.34.0 at least, that's where webview masking was introduced. Also, feel free to reach out to [email protected] directly if you feel it's better to discuss this p2p. Thanks! |
OS:
Platform:
SDK:
@sentry/react-native
(>= 1.0.0)react-native-sentry
(<= 0.43.2)SDK version: ^5.31.1
react-native
version: 0.74.5Are you using Expo?
Are you using sentry.io or on-premise?
If you are using sentry.io, please post a link to your issue so we can take a look:
[Link to issue]
Configuration:
ReactNativeSentry.init({
dsn: 'https://e96105128d654a5681e011b4be3e29cd@o4504245640232960.ingest.sentry.io/4504245656420352',
_experiments: {
replaysSessionSampleRate: 1.0,
replaysOnErrorSampleRate: 1.0,
profilesSampleRate: 1.0,
},
The text was updated successfully, but these errors were encountered: