Skip to content

Android UserInteractionIntegration doesn't start after deferred init #4356

@krystofwoldrich

Description

@krystofwoldrich

When the Sentry Android SDK init is deferred the UserInteractionIntegration doesn't start tracking until a new activity is created/resumed.

Related to: #4337

Related integration code:

public UserInteractionIntegration(
final @NotNull Application application, final @NotNull io.sentry.util.LoadClass classLoader) {
this.application = Objects.requireNonNull(application, "Application is required");
isAndroidXAvailable =
classLoader.isClassAvailable("androidx.core.view.GestureDetectorCompat", options);
}


Expectation: The Interaction tracking will start on integration creation if the current activity holder holds existing activity.

Metadata

Metadata

Assignees

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions