maui-deep-linking
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "maui-deep-linking" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-c7721d5fbe1756d7021d9687c04a0c5016652bbfc5295971b5d7d668a44c4050. Verify the upstream source and version against https://github.com/davidortinau/maui-skills before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
github.com
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Guide to implementing deep linking in .NET MAUI apps. Covers Android App Links (intent filters, Digital Asset Links, AutoVerify), iOS Universal Links (associated domain entitlements and Apple App Site Association file), custom URI schemes, and domain verification for both platforms, including opening the app from URLs and handling incoming URLs. Applicable to deep links, app links, universal links, custom URI schemes, intent filters, associated domains, Digital Asset Links, opening apps from URLs, and domain verification. Not for in-app Shell navigation (use maui-shell-navigation), push notification handling (use maui-push-notifications), or embedding web content (use maui-hybridwebview).
Introduction source: third_party · davidortinau · 0.0.1 Reference
SkillPi interpretation
- Tasks
- `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.
- Testing
- Not tested
Browse files
Frontmatter
name: maui-deep-linking
description: >
Guide for implementing deep linking in .NET MAUI apps. Covers Android App Links
with intent filters, Digital Asset Links, and AutoVerify; iOS Universal Links with
Associated Domains entitlements and Apple App Site Association files; custom URI
schemes; and domain verification for both platforms.
USE FOR: "deep linking", "app links", "universal links", "custom URI scheme",
"intent filter", "Associated Domains", "Digital Asset Links", "open app from URL",
"handle incoming URL", "domain verification".
DO NOT USE FOR: in-app Shell navigation (use maui-shell-navigation),
push notification handling (use maui-push-notifications), or web content embedding (use maui-hybridwebview)..NET MAUI Deep Linking
Platform Gotchas
Android
AutoVerify = trueis required on theIntentFilterfor App Links (not just deep links). Without it, Android shows a disambiguation dialog instead of opening your app directly.- Handle intent in both
OnCreateandOnNewIntent.OnCreatefires for cold starts;OnNewIntentfires 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.jsonaccordingly or verification silently fails. - Test verification status with:
adb shell pm get-app-links com.example.myappLook for
verifiedstatus, not justask.
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=developerquery param or Apple's CDN diagnostics:swcutil dl -d example.com. - Handle all three entry points:
FinishedLaunching,ContinueUserActivity, andSceneWillConnect. 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 justexample.cominstead ofapplinks:example.comsilently 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
| Approach | Verified | Fallback to browser | Recommended |
|---|---|---|---|
Custom URI scheme (myapp://) |
No | No | Only for app-to-app communication |
Android App Links (https://) |
Yes | Yes | ✅ Production web links |
iOS Universal Links (https://) |
Yes | Yes | ✅ 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:
IntentFilterhasAutoVerify = trueonMainActivity - [ ] Android:
assetlinks.jsonat/.well-known/with correct SHA-256 for current signing key - [ ] Android: Intent handled in both
OnCreateandOnNewIntent - [ ] Android: Verified with
adb shell pm get-app-links - [ ] iOS:
applinks:example.comin Associated Domains entitlement (not justexample.com) - [ ] iOS: AASA file at
/.well-known/apple-app-site-associationwith 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
Current listing version
0.0.1
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 涵盖 Android App Links、iOS Universal Links 和自定义 URI 方案的完整实现指南
- 提供平台差异说明和常见错误排查清单,实用性强
Highlights
- 触发词覆盖全面,包括 'deep linking'、'app links'、'universal links' 等核心术语
- 明确区分了适用与不适用场景,边界清晰
Areas to improve
-
缺少端到端完整示例 Reported severity: Minor
文档提供了代码片段和常见错误示例,但缺少一个完整的端到端实现示例
Recommendation: 建议补充一个完整的端到端示例,展示从配置到处理的完整流程
Highlights
- 结构清晰,分为平台差异、常见错误和调试清单三个主要部分
- 提供了详细的平台差异说明和常见错误排查清单
Areas to improve
-
缺少不可逆操作确认机制说明 Reported severity: Minor
文档未提及对不可逆操作的确认机制,如删除或修改关键配置时的用户确认
Recommendation: 建议在涉及关键配置修改时添加用户确认机制的说明
Highlights
- 提供了详细的调试清单和常见错误排查方法
- 代码示例中包含了线程安全的处理方式
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.