-
Notifications
You must be signed in to change notification settings - Fork 166
Closed
Labels
Description
What are you trying to achieve and what is your issue? Please describe.
Our project enabled datadog RUM for our web application, via loading https://www.datadoghq-browser-agent.com/us1/v6/datadog-rum.js
window.DD_RUM.onReady(function() {
window.DD_RUM.init({
clientToken: 'xxxx',
applicationId: 'xxxxxx',
site: 'datadoghq.com',
service: 'ebanking',
env: <%= raw json_escape(EnvConfig.env.to_json) %>,
version: <%= raw json_escape(Version.number.to_json) %>,
sessionSampleRate: 100,
sessionReplaySampleRate: 0,
defaultPrivacyLevel: 'mask',
**trackResources: true,**
trackUserInteractions: false,
});
window.DD_RUM.setUser({
id: window.uuid,
session_id: window.suid,
});
})
In website, it works great, but in our iOS App, which loads the web application via Webview, we encountered an strange issue.
As we can observe from iOS's logs, the flow looks like:
- The user click a nav bar item, a URL is loaded.
- Before the user can see the normal page, the webview is redirected to a blank page(about:blank).
It happened once the user gets into our App and load the very first web page.
Through debugging, we found sth:
when updatingtrackResources: truetotrackResources: false, the user can see the normal page, and only when datadog sends data, the page is redirected to the "abount:blank".
Describe alternatives you've considered
We can fix the issue by blocking any redirection for "abount:blank" in native side
Describe the solution you'd like
We would like to know if datadog do it in purpose, and if we can have a better solution to fix. We have read the source codes but didn't find anything related to "abount:blank".
Thanks for your support.