erkamyaman/ionic-capacitor-skills/ionic-deep-links

Claude Code and agent skill by erkamyaman/ionic-capacitor-skills

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Handle deep links in an Ionic Capacitor app — custom URL schemes (myapp://), iOS Universal Links, and Android App Links. Trigger when adding password-reset links, share-to-app URLs, OAuth callbacks, magic-link sign-in, or branded https:// links that open the app instead of the browser.

Install

npx vskill@latest install erkamyaman/ionic-capacitor-skills/ionic-deep-links

SKILL.md

The same SKILL.md was published earlier as erkamyaman/ionic-capacitor-skills/ionic-deep-links.

Deep Links (URL schemes + Universal Links + App Links)

Three flavors of deep linking that you'll likely need together:

TypeLooks likeVerified byUse when
Custom schememyapp://reset-password?token=…NothingInternal flows, OAuth callbacks. Easy. Anyone can register the scheme.
iOS Universal Linkhttps://yourapp.com/reset-password?token=…apple-app-site-association file on your domainBranded links that should open the app or fall back to the web.
Android App Linkhttps://yourapp.com/reset-password?token=…assetlinks.json on your domainSame goal as Universal Links, on Android.

You usually want all three for a polished app: one URL works on iOS and Android (Universal/App), with custom schemes as a fallback for cases where verified linking isn't possible.

When to consult

Canonical URL shape

Pick one path prefix per concern and use it consistently across custom schemes, Universal Links, and App Links so the same router code handles all three:

ConcernCustom schemeUniversal/App Link
Auth (reset / OAuth callback / magic link)myapp://auth/<flow>?...https://yourapp.com/auth/<flow>?...
Invitesmyapp://invite/<code>https://yourapp.com/invite/<code>
Sharemyapp://share/<id>https://yourapp.com/share/<id>

The auth path is shared across ionic-firebase, ionic-supabase, and password-reset / OAuth-callback flows in this scaffold:

  • Magic link: https://yourapp.com/auth/finish-signin?...
  • Password reset: myapp://auth/reset-password?token=...
  • OAuth callback (Supabase): myapp://auth/callback#access_token=...

Routing logic in the deep-link handler matches on pathname.startsWith('/auth/') and delegates to the right flow.

Hard rules

  • ✅ Use @capacitor/app's appUrlOpen listener — it fires for all three flavors uniformly.
  • ✅ Host the AASA / assetlinks.json files at your domain root with the right Content-Type (application/json, no extension).
  • ✅ Test with xcrun simctl openurl (iOS sim) and adb shell am start -a android.intent.action.VIEW -d "<url>" (Android emulator).
  • ❌ Don't rely on custom schemes alone for password reset / OAuth — modern OS versions and email clients increasingly suppress them.
  • ❌ Don't forget to call App.getLaunchUrl() on cold-start — appUrlOpen may not fire reliably for cold opens (it does in many Capacitor versions, but the behavior is platform- and version-dependent). Belt-and-suspenders: always check getLaunchUrl() once at boot.

Library

bash
npm install @capacitor/app
npx cap sync

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/erkamyaman/ionic-capacitor-skills/ionic-deep-links/badge)](https://verified-skill.com/skills/erkamyaman/ionic-capacitor-skills/ionic-deep-links)

Something wrong with this skill or its page? Tell us.