r/reactnative • • 11h ago

I built a tool to debug React Native Universal Links and Android App Links – looking for feedback

Hey everyone!

While working on React Native and Expo applications, I've encountered a recurring problem: when a deep link doesn't open the correct screen, figuring out where the issue actually lives can be frustrating.

Sometimes it's:

  • A misconfigured iOS AASA file.
  • An incorrect Android assetlinks.json.
  • A redirect or domain configuration issue.
  • Missing iOS entitlements.
  • Incorrect Android intent filters.
  • An Expo Router or application route mismatch.

The difficult part is identifying which layer is actually responsible.

So I built Deep Link Doctor to bring these checks together.

It currently has three components:

1. Web diagnostics

  • Checks DNS, TLS and redirects.
  • Validates Apple's AASA file.
  • Validates Android's assetlinks.json.

2. CLI
Run diagnostics directly from your terminal:

npx deeplink-doctor-cli diagnose yourdomain.com

3. Cursor AI Skill

I also created a skill that lets Cursor investigate deep-link issues inside your actual React Native / Expo codebase.

Install it using:

npx skills add keeplay20/deep-link-doctor --skill deep-link-validator --agent cursor

You can then ask Cursor:

"This Universal Link opens Safari instead of my app. Can you investigate why?"

I tested the CLI and skill against a real React Native / Expo application.

GitHub: https://github.com/keeplay20/deep-link-doctor

npm: https://www.npmjs.com/package/deeplink-doctor-cli

I'd love to get feedback from other React Native developers.

A few things I'm curious about:

  1. How do you currently debug Universal Links and Android App Links?
  2. Do you use any existing tools for this?
  3. What would you want Deep Link Doctor to check next?

This is an evolving project, so honest feedback and suggestions are welcome!

1 Upvotes

3 comments sorted by

1

u/dawedev 9h ago

The layer that trips people up most is Apple's CDN: devices fetch the AASA through app-site-association.cdn-apple.com, so a fix on your server can take a while to show up. Does the CLI check the CDN copy too, or only the origin?

1

u/MandarVyas 9h ago

You’re right! CDN lag trips people up constantly.
Originally it was origin only (/.well-known/apple-app-site-association), including redirect checks because Apple won’t follow those.

As of 0.2.1 it also pulls Apple’s cached copy from app-site-association.cdn-apple.com/a/v1/<your-host> and compares it to origin — warns on 404 (not cached yet), mismatch (stale CDN), or origin broken but CDN still serving an old file.
 CLI: npx deeplink-doctor-cli@0.2.1 diagnose yourdomain.com --json
 Web: Deep Link Doctor — same checks

Manual check: curl -sS "https://app-site-association.cdn-apple.com/a/v1/yourdomain.com" | jq .
Thanks for the nudge!!!

1

u/dawedev 8h ago

Nice, the stale CDN mismatch warning is the part that would've saved me the most time. Heads up, the web link in your comment still points to your-vercel-url, looks like a placeholder.