Skip to content

Android demo: Add a WebView screen with connected traces (Empower Plant web store) #6695

Open

Description

@antonis

Outcome

Add a screen to the Android demo app that loads the Empower Plant web store (https://empower-plant.com/products) in a WebView. One trace should run from the Android app through the web page to the backend.

This is the Android version of the React Native demo (sentry-demos/sentry_react_native#150).

Originally filed as sentry-demos/android#284, now closed in favour of this issue.

Expected trace

  • app transaction (Android)
    • pageload – /products (Empower React project)
      • http.client – GET …/products
        • http.server (Flask)

Scope

  • Bump the Sentry Android SDK from 8.51.0 to 8.64.0 or later (Gradle plugin sentryVersion). Add androidx.webkit:webkit.
  • Add an activity with a WebView that loads the products page. Call SentryWebViewTracing.addTracePropagation(webView, "empower-plant.com") before loadUrl, or set options.webViewTracing.allowedHosts.
  • Open it from the existing "More" menu. Keep the existing menu items and their IDs unchanged, so the TDA tests keep working.
  • Optional: add a test_webview_android.py TDA test, like the Flutter one.
  • Later: switch to automatic instrumentation via the Gradle plugin (Automatic WebView trace propagation via the Gradle plugin #6407) once it's released.

Activity

  1. self-assigned this
    on Nov 20, 2026
  2. linear-code commented on Nov 20, 2026

    @linear-code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions