getsentry / getsentry/sentry-java
User consent support
Open
Android
Errors
Improvement
user-consent
- Dominant language
- Kotlin
- Stars
- 1.4k
- Forks
- 478
- Avg merge
- 2d 23h
- Merged PRs (30d)
- 67
Description
### Problem Statement
Context https://github.com/getsentry/sentry-java/issues/1752
SDK may want to capture events but not send them before the user is given consent
### Solution Brainstorm
Sentry Native already supports user consent, we can borrow the idea and do something similar https://github.com/getsentry/sentry-native/blob/a51ccbbdb00cd3042022f7df6d4e352e9ae6c0c3/src/sentry_options.c#L276-L286
Request for the same feature on iOS: https://github.com/getsentry/sentry-cocoa/issues/1780
Contributor guide
Assessment
This issue has not been assessed yet.