Skip to content
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

Empty page in Android webView session replay #2355

Open
BaHungSkedulo opened this issue Oct 29, 2024 · 7 comments
Open

Empty page in Android webView session replay #2355

BaHungSkedulo opened this issue Oct 29, 2024 · 7 comments
Labels
question Further information is requested

Comments

@BaHungSkedulo
Copy link

Question

Hello DataDog Team,

The current webView session replay shows only an empty page with no user interactions. How can I make it function like in native mobile?
Image

@BaHungSkedulo BaHungSkedulo added the question Further information is requested label Oct 29, 2024
@jonathanmos
Copy link
Contributor

hi @BaHungSkedulo, have you followed the steps in this guide for instrumenting the webview? Does this issue occur with the latest sdk version?

@BaHungSkedulo
Copy link
Author

BaHungSkedulo commented Oct 30, 2024

I haven't implemented the instrument for the webview yet, let me try and provide feedback as soon as possible.

@BaHungSkedulo
Copy link
Author

Hi @jonathanmos after trying to follow your guide, I still faced the same issue: nothing changed, and the page remains empty, I believe my situation might be different. We load source data, save it in a local HTML file, and then display it in a webView, I'm using version 2.14.0, Do you think it still captures the content of the webview in this scenario?

@jonathanmos
Copy link
Contributor

hi @BaHungSkedulo, webviews can only be captured if the web app that is being accessed in the webview is also instrumented with the browser sdk. Is this the case here?

@BaHungSkedulo
Copy link
Author

BaHungSkedulo commented Nov 1, 2024

hi @jonathanmos I'm sorry, but I don't fully understand your question. We use WebView to display content. I have reviewed the example data for Dog and verified the code in the WebViewRecordFragment class, as we have already established it. The key difference is that we display a locally stored HTML file. As far as I know, session replay cannot capture content from the webview since it's stored locally, right?

@jonathanmos
Copy link
Contributor

One of the requirements to capture the webview is that the content of the webview must be instrumented with the browser sdk - in other words that the browser sdk is running inside the view at the time that you are recording it with session replay. This may be possible with a local html file if you can reference the js content.

@BaHungSkedulo
Copy link
Author

Thank you for taking the time and effort to address my concerns, I genuinely appreciate it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants