Skip to content
Merged
24 changes: 24 additions & 0 deletions docs/platforms/android/configuration/webview.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
title: WebView
description: "Learn how to set up the Sentry Android and Browser SDKs with WebView."
---

To monitor errors and performance in web views of Android applications, you need to set up Sentry SDKs in both the mobile application and the web projects running in the web views.

## Application Monitoring

The Sentry Android SDK doesn't interact with the mobile application's web views. To monitor errors and performance in the Android part of the application follow the [Sentry Android SDK setup instructions](/platforms/android/).

## WebView Monitoring

To monitor errors and performance in web views choose the appropriate Sentry JavaScript SDK depending on the framework used in the web project.

- [Sentry React SDK](/platforms/javascript/guides/react/) (if the web project uses React)
- [Sentry Angular SDK](/platforms/javascript/guides/angular/) (if the web project uses Angular)
- [Other Sentry JavaScript SDKs](/platforms/javascript)

## Notes

- The JavaScript SDK should be initialized when the web view is created and will be closed when the web view is closed. To monitor all web views in the application, initialize the JavaScript SDK every time a web view is created.

- If the web project is accessed remotely and not unique to the mobile application (for example the project also works as a standalone web application), we recommend using separate Sentry projects for the mobile application and the web project.
24 changes: 24 additions & 0 deletions docs/platforms/apple/common/configuration/webview.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
title: WebView
description: "Learn how to set up the Sentry Cocoa and Browser SDKs with WebView."
---

To monitor errors and performance in web views of iOS, iPadOS, and macOS applications, you need to set up Sentry SDKs in both the mobile application and the web projects running in the web views.

## Application Monitoring

The Sentry Cocoa SDK doesn't interact with the mobile application's web views. To monitor errors and performance in the native part of the application follow the [Sentry Cocoa SDK setup instructions](/platforms/apple/).

## WebView Monitoring

To monitor errors and performance in web views choose the appropriate Sentry JavaScript SDK depending on the framework used in the web project.

- [Sentry React SDK](/platforms/javascript/guides/react/) (if the web project uses React)
- [Sentry Angular SDK](/platforms/javascript/guides/angular/) (if the web project uses Angular)
- [Other Sentry JavaScript SDKs](/platforms/javascript)

## Notes

- The JavaScript SDK should be initialized when the web view is created and will be closed when the web view is closed. To monitor all web views in the application, initialize the JavaScript SDK every time a web view is created.

- If the web project is accessed remotely and not unique to the mobile application (for example the project also works as a standalone web application), we recommend using separate Sentry projects for the mobile application and the web project.
24 changes: 24 additions & 0 deletions docs/platforms/flutter/configuration/webview.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
title: WebView
description: "Learn how to set up the Sentry Flutter and Browser SDKs with WebView."
---

To monitor errors and performance in web views of Flutter applications, you need to set up Sentry SDKs in both the mobile application and the web projects running in the web views.

## Application Monitoring

The Sentry Flutter SDK doesn't interact with the mobile application's web views. To monitor errors and performance in the Flutter part of the application follow the [Sentry Flutter SDK setup instructions](/platforms/flutter/).

## WebView Monitoring

To monitor errors and performance in web views choose the appropriate Sentry JavaScript SDK depending on the framework used in the web project.

- [Sentry React SDK](/platforms/javascript/guides/react/) (if the web project uses React)
- [Sentry Angular SDK](/platforms/javascript/guides/angular/) (if the web project uses Angular)
- [Other Sentry JavaScript SDKs](/platforms/javascript)

## Notes

- The JavaScript SDK should be initialized when the web view is created and will be closed when the web view is closed. To monitor all web views in the application, initialize the JavaScript SDK every time a web view is created.

- If the web project is accessed remotely and not unique to the mobile application (for example the project also works as a standalone web application), we recommend using separate Sentry projects for the mobile application and the web project.
24 changes: 24 additions & 0 deletions docs/platforms/react-native/configuration/webview.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
title: WebView
description: "Learn how to set up the Sentry React Native and Browser SDKs with React Native WebView."
---

To monitor errors and performance in web views of React Native applications, you need to set up Sentry SDKs in both the mobile application and the web projects running in the web views.

## Application Monitoring

The Sentry React Native SDK doesn't interact with the mobile application's web views. To monitor errors and performance in the React Native part of the application follow the [Sentry React Native SDK setup instructions](/platforms/react-native/).

## WebView Monitoring

To monitor errors and performance in web views choose the appropriate Sentry JavaScript SDK depending on the framework used in the web project.

- [Sentry React Native SDK](/platforms/react-native) (if the web project uses React Native Web or Expo)
- [Sentry React SDK](/platforms/javascript/guides/react/) (if the web project uses React)
- [Other Sentry JavaScript SDKs](/platforms/javascript)

## Notes

- The JavaScript SDK should be initialized when the web view is created and will be closed when the web view is closed. To monitor all web views in the application, initialize the JavaScript SDK every time a web view is created.

- If the web project is accessed remotely and not unique to the mobile application (for example the project also works as a standalone web application), we recommend using separate Sentry projects for the mobile application and the web project.
Loading