Closed FantaMagier closed 2 months ago
Using beforeSend will allow you to do this. This code snippet will prevent any data from being sent before the consent:
await SentryFlutter.init((options) {
options.beforeSend = (event, hint) async {
if (consentGiven) {
return event;
}
return null;
};
});
Thanks!
Problem Statement
I would like to get the user consent to send his crash reports. As soon as the user has given me the ok, I can send the crash reports and co. to Sentry.
Solution Brainstorm
Is there a function to activate or deactivate tracking at any time?
Are you willing to submit a PR?
None