DataDog / dd-sdk-flutter

Flutter bindings and tools for utilizing Datadog Mobile SDKs
Apache License 2.0
41 stars 40 forks source link

Add webview tracking support for flutter_inappwebview plugin #624

Open orevial opened 1 week ago

orevial commented 1 week ago

Feature description

Web View tracking for Flutter is closely coupled to Flutter default webview plugin webview_flutter.

It would be great if there was the same kind of extension on the very popular plugin flutter_inappwebview as well.

This would offer this kind of integration for this plugin :

image

Proposed solution

Add an extension to flutter_inappwebview controller like we have today for flutter_webview, e.g.:

InAppWebView(
  initialSettings: InAppWebViewSettings(
    ... some settings
  )..trackDatadogEvents(
    DatadogSdk.instance,
    ['myapp.example'],
  )
)

Other relevant information

Proposed solution would be the most integrated solution.

fuzzybinary commented 4 days ago

Hi @orevial,

I will look into it. Can you also raise a feature request with Datadog support so we can capture this internally?

Thanks!