in our use case we gather the logs but they should be send only after the user agrees on sharing the info with us. Currently sentry tries to send logs as soon as they appear.
We had some workaround around this issue using
We’ve just converted “Events” to breadcrumbs, and then when we really want to send data we use the info gathered in breadcrumbs to restore true “Event” and send it.
It seems like Sentry doesn’t persist Breadcrumbs.
So assume we gather some breadcrumbs, then app crash / user kill the app. App start again and there are none breadcrumbs available.
I’ve tried to configure cacheDirPath in a hope that it will enable persistance:
options.cacheDirPath = context.filesDir.path + "/sentry/cache"
but it work only partially (only when in Flightmode) there are some files in data/data/app/.
- Does Sentry persist breadcrumbs, do they survive app death?
- Is there any other way we could store breadcrumbs/event and send them later (not immedietaly?)