Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
davidortinau avatar

Maui Deep Linking

  • 29 installs
  • 163 repo stars
  • Updated July 6, 2026
  • davidortinau/maui-skills

Implements deep linking in .NET MAUI apps via Android App Links with Digital Asset Links and iOS Universal Links.

About

Guides implementing deep linking in .NET MAUI apps covering Android App Links with intent filters, Digital Asset Links and AutoVerify, plus iOS Universal Links. A developer uses it when routing external URLs into specific MAUI app screens.

  • Android App Links with intent filters and Digital Asset Links
  • iOS Universal Links with AutoVerify

Maui Deep Linking by the numbers

  • 29 all-time installs (skills.sh)
  • Ranked #672 of 1,039 Mobile Development skills by installs in the Skillselion catalog
  • Data as of Aug 3, 2026 (Skillselion catalog sync)
npx skills add https://github.com/davidortinau/maui-skills --skill maui-deep-linking

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs29
repo stars163
Last updatedJuly 6, 2026
Repositorydavidortinau/maui-skills

What it does

Implements deep linking in .NET MAUI apps via Android App Links with Digital Asset Links and iOS Universal Links.

Files

SKILL.mdMarkdownGitHub ↗

.NET MAUI Deep Linking

Platform Gotchas

Android

  • `AutoVerify = true` is required on the IntentFilter for App Links (not

just deep links). Without it, Android shows a disambiguation dialog instead of opening your app directly.

  • Handle intent in both `OnCreate` and `OnNewIntent`.

OnCreate fires for cold starts; OnNewIntent fires when the app is already running. Missing either means links silently fail in one scenario.

// ❌ Only handles cold-start links
protected override void OnCreate(Bundle? savedInstanceState)
{
    base.OnCreate(savedInstanceState);
    HandleDeepLink(Intent);
}

// ✅ Handles both cold-start and warm-start links
protected override void OnCreate(Bundle? savedInstanceState)
{
    base.OnCreate(savedInstanceState);
    HandleDeepLink(Intent);
}
protected override void OnNewIntent(Intent? intent)
{
    base.OnNewIntent(intent);
    HandleDeepLink(intent);
}
  • SHA-256 fingerprint must match the signing key used for the build you're

testing. Debug and release builds use different keys — update assetlinks.json accordingly or verification silently fails.

  • Test verification status with:
  adb shell pm get-app-links com.example.myapp

Look for verified status, not just ask.

iOS

  • ⚠️ Universal Links do NOT work in the Simulator. You must test on a

physical device.

  • AASA changes take up to 24 hours to propagate through Apple's CDN

(iOS 14+). During development, use the ?mode=developer query param or Apple's CDN diagnostics: swcutil dl -d example.com.

  • Handle all three entry points: FinishedLaunching, ContinueUserActivity,

and SceneWillConnect. Missing any one causes links to fail for specific app states (cold start, background resume, or scene-based launch).

  • `applinks:` prefix is required in the Associated Domains entitlement.

Writing just example.com instead of applinks:example.com silently fails.

---

Common Mistakes

Forgetting MainThread.BeginInvokeOnMainThread

Deep link callbacks can fire on background threads. Shell navigation must run on the main thread.

// ❌ May crash — GoToAsync called off the main thread
static void HandleUniversalLink(string? url)
{
    if (string.IsNullOrEmpty(url)) return;
    Shell.Current.GoToAsync(MapToRoute(url));
}

// ✅ Dispatch to main thread
static void HandleUniversalLink(string? url)
{
    if (string.IsNullOrEmpty(url)) return;
    MainThread.BeginInvokeOnMainThread(async () =>
        await Shell.Current.GoToAsync(MapToRoute(url)));
}

Route not registered before navigation

Register Shell routes in AppShell constructor before any deep link can fire. If the route doesn't exist, GoToAsync throws silently or navigates to root.

Custom URI schemes vs. App Links / Universal Links

ApproachVerifiedFallback to browserRecommended
Custom URI scheme (myapp://)NoNoOnly for app-to-app communication
Android App Links (https://)YesYes✅ Production web links
iOS Universal Links (https://)YesYes✅ Production web links
⚠️ Custom URI schemes are not verified — any app can register the same
scheme. Use https:// App Links / Universal Links for user-facing URLs.

---

Debugging Checklist

  • [ ] Android: IntentFilter has AutoVerify = true on MainActivity
  • [ ] Android: assetlinks.json at /.well-known/ with correct SHA-256 for current signing key
  • [ ] Android: Intent handled in both OnCreate and OnNewIntent
  • [ ] Android: Verified with adb shell pm get-app-links
  • [ ] iOS: applinks:example.com in Associated Domains entitlement (not just example.com)
  • [ ] iOS: AASA file at /.well-known/apple-app-site-association with correct Team ID
  • [ ] iOS: All three lifecycle entry points handled
  • [ ] iOS: Tested on physical device (not simulator)
  • [ ] Shell routes registered before deep link callbacks fire
  • [ ] Navigation dispatched to main thread

Related skills

Mobile Developmentfrontendintegrations

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.