Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use ServicesBinding.rootIsolateToken to check for main isolate in f…
…lutter
  • Loading branch information
denrase committed Jan 16, 2024
commit 33d40b171cc6dfd777c23f0f60e4bf2db341bcd9
5 changes: 5 additions & 0 deletions flutter/lib/src/sentry_flutter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,11 @@ mixin SentryFlutter {
options.addEventProcessor(PlatformExceptionEventProcessor());

_setSdk(options);

// ignore: invalid_use_of_internal_member
options.isMainIsolate = () {
return ServicesBinding.rootIsolateToken != null;
};
}

/// Install default integrations
Expand Down