r/reactnative • u/MandarVyas • 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:
- How do you currently debug Universal Links and Android App Links?
- Do you use any existing tools for this?
- What would you want Deep Link Doctor to check next?
This is an evolving project, so honest feedback and suggestions are welcome!
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?