Upgrade to Pro — share decks privately, control downloads, hide ads and more …

リンクからモバイルアプリを起動する技術

 リンクからモバイルアプリを起動する技術

Avatar for greendrop

greendrop

March 19, 2025
Tweet

More Decks by greendrop

Other Decks in Technology

Transcript

  1. 目次 Custom URL Scheme App Links (Android), Universal Links (iOS)

    サードパーティサービスの利用 まとめ
  2. Custom URL Scheme とは モバイルアプリが提供する独自の URL スキーム モバイルアプリで myapp のような

    URL スキームを登録すること で、他のアプリや Web サイトからアプリを起動ができる <a href="myapp://">アプリを起動</a> Custom URL Scheme
  3. App Links (Android), Universal Links (iOS) と は モバイルアプリが提供する URL

    スキームを Web サイトのドメイン に紐づける仕組み モバイルアプリがインストールされている場合、モバイルアプリが 起動される モバイルアプリがインストールされていない場合、Web サイトに遷 移する <a href="https://example.com/">アプリを起動</a> App Links (Android), Universal Links (iOS)
  4. App Links (Android), Universal Links (iOS) と は 該当の Web

    サイトに assetlinks.json または apple-app-site-association ファイルを配置することが必要 https://line.me/.well-known/assetlinks.json https://line.me/.well-known/apple-app-site-association App Links (Android), Universal Links (iOS)
  5. App Links (Android), Universal Links (iOS) と は Apps Link

    (Android) https://developer.android.com/training/app-links?hl=ja Universal Links (iOS) https://developer.apple.com/documentation/xcode/allowing- apps-and-websites-to-link-to-your-content/ App Links (Android), Universal Links (iOS)
  6. Universal Links (iOS) の注意点 ブラウザに直接 URL を入力してもアプリが起動しない 同じドメインの内の遷移ではアプリが起動しない 例: https://example.com/web

    から https://example.com/app_open ではアプリが起動しない リダイレクトや JavaScript での遷移ではアプリが起動しないことも ある ユーザーによる操作が重要 https://blog.nnn.dev/entry/2024/02/08/110000 App Links (Android), Universal Links (iOS)
  7. まとめ 技術 アプリ起 動 未インストー ル Web へ遷移 未インストー ル

    ストアへ遷移 Custom URL Scheme △ × × App Links (Android) ◦ ◦ × Universal Links (iOS) ◦ ◦ × サードパーティサービ ス ◦ ◦ ◦