Skip to content

Commit 31df42a

Browse files
authored
Add Android troubleshooting entry for ad blockers (#14237)
Added Android troubleshooting entry for ad blockers Updated proxy option
1 parent 1fb45cc commit 31df42a

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

docs/platforms/android/configuration/options.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,9 +249,9 @@ Switches out the transport used to send events. How this works depends on the SD
249249

250250
</ConfigKey>
251251

252-
<ConfigKey name="http-proxy">
252+
<ConfigKey name="proxy">
253253

254-
When set, a proxy can be configured that should be used for outbound requests. This is also used for HTTPS requests unless a separate `https-proxy` is configured. However, not all SDKs support a separate HTTPS proxy. SDKs will attempt to default to the system-wide configured proxy, if possible. For instance, on Unix systems, the `http_proxy` environment variable will be picked up.
254+
When set, a proxy can be configured that should be used for outbound requests. This is also used for HTTPS requests.
255255

256256
</ConfigKey>
257257

docs/platforms/android/troubleshooting/index.mdx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,16 @@ internally. As a result, this option won't work out of the box on devices with a
177177
android.bundle.enableUncompressedNativeLibs=false
178178
```
179179

180+
## The SDK Is Not Sending Data
181+
182+
If you set up the Sentry SDK and it's not sending any data to Sentry:
183+
184+
- Check that you have configured a DSN and that you are passing it to the `dsn` option in `SentryAndroid.init()` or `AndroidManifest`.
185+
- When a crash happens or the app closes, the system allows only a short time to handle it before terminating the process. The SDK might not have enough time to send the event, spans, profile, or replay data. In these cases, simply relaunching the app should allow the SDK to send the remaining data.
186+
- An ad-blocker (e.g. [DuckDuckGo's App Tracking Protection](https://duckduckgo.com/duckduckgo-help-pages/p-app-tracking-protection/what-is-app-tracking-protection)) or network restrictions might be preventing the SDK from reaching Sentry's servers. As a workaround, you can use [tunneling](/platforms/javascript/troubleshooting/#using-the-tunnel-option) to proxy Sentry events through your own server. Then you can add the [proxy option](/platforms/android/configuration/options/#proxy) to your SDK configuration.
187+
- Set `debug: true` in the `SentryAndroid.init()` or the manifest options and observe your Logcat output when you start your application. The SDK may tell you why it is not sending any data.
188+
- Check the [Stats](https://sentry.io/orgredirect/organizations/:orgslug/stats/) and [Subscription](https://sentry.io/orgredirect/organizations/:orgslug/settings/billing/overview/) pages in Sentry. You may be out of quota.
189+
180190
## Sentry Android Gradle Plugin Build Issues
181191

182192
### Proguard Mapping Upload Issues

docs/platforms/javascript/common/troubleshooting/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ If you set up the Sentry SDK and it's not sending any data to Sentry:
1616

1717
- Check that you have disabled any ad-blockers.
1818
- Set `debug: true` in the `Sentry.init()` options and observe your console output when you start your application. The SDK may tell you why it is not sending any data.
19-
- Check the [Stats](https://sentry.io/orgredirect/organizations/:orgslug/stats/) and [Suscription](https://sentry.io/orgredirect/organizations/:orgslug/settings/billing/overview/) pages in Sentry. You may have ran out of quota.
19+
- Check the [Stats](https://sentry.io/orgredirect/organizations/:orgslug/stats/) and [Subscription](https://sentry.io/orgredirect/organizations/:orgslug/settings/billing/overview/) pages in Sentry. You may have ran out of quota.
2020

2121
<PlatformSection supported={["javascript.nextjs"]}>
2222
- Check that you didn't set `sideEffects: false` in your `package.json`.

0 commit comments

Comments
 (0)