diff --git a/flutter/android/src/main/kotlin/io/sentry/flutter/SentryFlutterPlugin.kt b/flutter/android/src/main/kotlin/io/sentry/flutter/SentryFlutterPlugin.kt index 5a4c2cbea..648ca4d84 100644 --- a/flutter/android/src/main/kotlin/io/sentry/flutter/SentryFlutterPlugin.kt +++ b/flutter/android/src/main/kotlin/io/sentry/flutter/SentryFlutterPlugin.kt @@ -171,7 +171,7 @@ class SentryFlutterPlugin : FlutterPlugin, MethodCallHandler, ActivityAware { val appStartMetrics = AppStartMetrics.getInstance() - if (!appStartMetrics.appLaunchedInForeground) { + if (!appStartMetrics.isAppLaunchedInForeground) { Log.w("Sentry", "App not launched in Foreground") result.success(null) }