Skip to content

Feature Request: Per event user-consent. #933

Open

Description

@stima

Description

Move consent from "global state" to "per event state".

When does the problem happen

  • During build
  • During run-time
  • When capturing a hard crash

Environment

  • OS: Unrelated
  • Compiler: Unrelated
  • CMake version and config: Unrelated

Steps To Reproduce

  1. Turn consent off.
  2. Generate crash.
  3. Turn consent on.
  4. Previous crash would be send, even conset was not given for that particular case.

Log output

Activity

  1. moved this to Waiting for: Product Owner in GitHub Issues with 👀 2on Jan 3, 2024
  2. supervacuus commented on Jan 8, 2024

    @supervacuus
    Collaborator

    Thanks, @stima. I am unsure if I would classify this as a bug since we have no cross-SDK rule about user consent. In general, most users will expect that this is a global setting, so applying this to each event will always happen in the context of a global setting to make sure we don't retroactively give consent.

  3. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 2on Jan 8, 2024
  4. changed the title [-]Feature Request (bug?): Consent should be per event.[/-] [+]Feature Request: Per event user-consent.[/+] on Jan 8, 2024
  5. supervacuus commented on Jan 8, 2024

    @supervacuus
    Collaborator

    In general, most users will expect that this is a global setting, so applying this to each event will always happen in the context of a global setting to make sure we don't retroactively give consent.

    By the way, if you mean for users to give consent per event (and not only prevent retroactive sending), that would be yet another design since it would require that we provide an API for the crash context (to allow the user to make the decision based on the contents of what would be sent). This is different from what the user-consent functionality is currently supposed to implement.

  6. supervacuus commented on Jan 8, 2024

    @supervacuus
    Collaborator
  7. kahest commented on Jan 8, 2024

    @kahest
    Contributor

    We're talking about 2 different things here:

    • Consent per event is a new feature
    • The steps to reproduce describe something that sounds like a bug to me - storing consent per event is a fix for it, but there's likely less involved fixes

    About the second point: an event captured while consent was not given should not be sent, even if consent is given afterwards and the event is still present. This seems like an edge case though. @supervacuus wdyt?

  8. stima commented on Jan 8, 2024

    @stima
    ContributorAuthor

    About the second point: an event captured while consent was not given should not be sent, even if consent is given afterwards and the event is still present

    @kahest yes you are totally right, that is mostly about that global consent can not be used when event already generated

  9. 20 remaining items

  10. added
    Feature
    on Apr 8, 2025
  11. added
    Native
    and removed on Aug 8, 2025
  12. added
    Errors
    and removed on Mar 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ErrorsFeatureNative

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions