Skip to content

Add Android troubleshooting entry for ad blockers #14237

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

stefanosiano
Copy link
Member

DESCRIBE YOUR PR

Added Android troubleshooting entry for ad blockers
Updated proxy option
Closes getsentry/sentry-android-gradle-plugin#658

IS YOUR CHANGE URGENT?

Help us prioritize incoming PRs by letting us know when the change needs to go live.

  • Urgent deadline (GA date, etc.):
  • Other deadline:
  • None: Not urgent, can wait up to 1 week+

SLA

  • Teamwork makes the dream work, so please add a reviewer to your PRs.
  • Please give the docs team up to 1 week to review your PR unless you've added an urgent due date to it.
    Thanks in advance for your help!

PRE-MERGE CHECKLIST

Make sure you've checked the following before merging your changes:

  • Checked Vercel preview for correctness, including links
  • PR was reviewed and approved by any necessary SMEs (subject matter experts)
  • PR was reviewed and approved by a member of the Sentry docs team

EXTRA RESOURCES

Copy link

vercel bot commented Jul 2, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sentry-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 8, 2025 8:52am
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
develop-docs ⬜️ Ignored (Inspect) Visit Preview Jul 8, 2025 8:52am

@codeowner-assignment codeowner-assignment bot requested a review from a team July 2, 2025 14:56
Copy link

codecov bot commented Jul 2, 2025

Bundle Report

Changes will increase total bundle size by 2.14kB (0.01%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
sentry-docs-server-cjs 11.8MB 2.14kB (0.02%) ⬆️
sentry-docs-client-array-push 9.8MB -6 bytes (-0.0%) ⬇️

Affected Assets, Files, and Routes:

view changes for bundle: sentry-docs-server-cjs

Assets Changed:

Asset Name Size Change Total Size Change (%)
1729.js -3 bytes 1.64MB -0.0%
../instrumentation.js -3 bytes 973.36kB -0.0%
9523.js -3 bytes 949.31kB -0.0%
../app/[[...path]]/page.js.nft.json 717 bytes 691.93kB 0.1%
../app/platform-redirect/page.js.nft.json 717 bytes 691.84kB 0.1%
../app/sitemap.xml/route.js.nft.json 717 bytes 689.81kB 0.1%
view changes for bundle: sentry-docs-client-array-push

Assets Changed:

Asset Name Size Change Total Size Change (%)
static/chunks/pages/_app-*.js -3 bytes 873.24kB -0.0%
static/chunks/7750-*.js -3 bytes 415.85kB -0.0%
server/middleware-*.js 5.55kB 6.55kB 555.3% ⚠️
server/middleware-*.js -5.55kB 1.0kB -84.74%
static/quu5lHCsNFrwSj4Xmh13z/_buildManifest.js (New) 684 bytes 684 bytes 100.0% 🚀
static/quu5lHCsNFrwSj4Xmh13z/_ssgManifest.js (New) 77 bytes 77 bytes 100.0% 🚀
static/y1PN8i0UeThLNvataMyC7/_buildManifest.js (Deleted) -684 bytes 0 bytes -100.0% 🗑️
static/y1PN8i0UeThLNvataMyC7/_ssgManifest.js (Deleted) -77 bytes 0 bytes -100.0% 🗑️

@romtsn
Copy link
Member

romtsn commented Jul 2, 2025

Looking at this I'm thinking if we should repurpose this PR and actually introduce a more broad section like JS's The SDK is not sending data, wdyt? We could also mention that the app might need to be relaunched, etc. And I think it'd be good to specifically call out DuckduckGo as a potential blocker, as it's one of the most popular tools out there.

@kahest
Copy link
Member

kahest commented Jul 3, 2025

@romtsn good idea IMO - let's do it

Copy link
Contributor

@coolguyzone coolguyzone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks for updating!

@stefanosiano
Copy link
Member Author

@romtsn What do you think of this page update?


If you set up the Sentry SDK and it's not sending any data to Sentry:

- Check that you have configured a DSN and that you are passing it to the `dsn` option in `SentryAndroid.init()`.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Check that you have configured a DSN and that you are passing it to the `dsn` option in `SentryAndroid.init()`.
- Check that you have configured a DSN and that you are passing it to the `dsn` option in `SentryAndroid.init()` or `AndroidManifest`.


- Check that you have configured a DSN and that you are passing it to the `dsn` option in `SentryAndroid.init()`.
- 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.
- An ad-blocker 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.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- An ad-blocker 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.
- 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.

Copy link
Member

@romtsn romtsn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A couple of suggestions, but LGTM otherwise!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Document custom proxies blocking traffic to sentry.io
4 participants