sentry-java
sentry-java copied to clipboard
Cache current network connection state
Description
As a follow-up of https://github.com/getsentry/sentry-java/pull/4164 we want to cache the last known connection state, so calling AndroidConnectionStatusProvider.getConnectionStatus() returns a cached value.
Let's have a closer look at our usage pattern. Maybe we could cache the last known connection state for a certain amount of time (e.g. 1 minute).