Skip to content
This repository was archived by the owner on Jun 16, 2026. It is now read-only.
This repository was archived by the owner on Jun 16, 2026. It is now read-only.

Add new app context that tells if the app is in the background or foreground #36

Description

@marandaneto

This field should be queriable in the discover dashboard.
Today people rely on was active: yes|no but it's not 100% correct and aligned between platforms.
Other option is looking into breadcrumbs, but that is not queriable in the discover dashboard.

We could add a tag but afaik SDKs should not add tags themselves.

### `in_foreground` flag
- [ ] https://github.com/getsentry/sentry-dart/pull/1260
- [ ] https://github.com/getsentry/sentry-java/pull/2516
- [ ] https://github.com/getsentry/sentry-cocoa/pull/2692
- [ ] https://github.com/getsentry/sentry-react-native/pull/2826
### `main` flag.
- [ ] https://github.com/getsentry/sentry-java/pull/2516
- [ ] https://github.com/getsentry/sentry-cocoa/pull/2692

Related issues for surfacing on product:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions