-
-
Notifications
You must be signed in to change notification settings - Fork 342
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
User Consent - Allow manual sending of events #1780
Comments
Routing to @getsentry/team-webplatform for triage. ⏲️ |
Routing to @getsentry/team-mobile for triage. ⏲️ |
@bruno-garcia ^ user consent request. |
@AshStefanOltmann a built-in feature for that makes sense, but we're not there yet, thanks for reporting. there are workarounds tho, you can decide to initialize or not the SDK depending on the user consent, or enable and disable the SDK if necessary afterwards. you can also filter out events if the user has not given user consent https://docs.sentry.io/platforms/android/configuration/filtering/ what we don't have is, the SDK is enabled but not sending events, and later you decide to send all the events. the same workarounds are possible for iOS |
I'll move this to the |
While we don't have this feature yet, you could somehow build a similar behavior on your own. You can use setup the SDK with |
FYI this is a P1 in getsentry/team-mobile#24 while being a P3 here |
Problem Statement
Currently sending of events seems to be fully automatic.
I want to ask my users for consent before sending the crash report.
Solution Brainstorm
I'm interested in the SDKs for Java, iOS & macOS.
Crashlytics has the following methods:
setCrashlyticsCollectionEnabled(boolean enabled)
to enable automatic sending of eventscheckForUnsentReports()
to check if I should show a promt asking the usersendUnsentReports()
to send the report (after the user aggreed to)deleteUnsentReports()
to delete them if the user does not want to send the reportThe text was updated successfully, but these errors were encountered: