facebook twitter hatena line email

「Unity/URLからアプリ起動/iOS」の版間の差分

提供: 初心者エンジニアの簡易メモ
移動: 案内検索
(Content-Typeをapplication/jsonへ)
(Content-Typeをapplication/jsonへ)
行35: 行35:
 
     Header set Content-Type "application/json"
 
     Header set Content-Type "application/json"
 
</Files>
 
</Files>
 +
</pre>
 +
 +
確認
 +
<pre>
 +
$ curl -I ttps://example.com/.well-known/apple-app-site-association
 +
 +
HTTP/2 200
 +
server: nginx
 +
date: Thu, 04 Dec 2025 18:18:45 GMT
 +
content-type: application/json
 
</pre>
 
</pre>

2025年12月5日 (金) 03:32時点における版

iOSの場合

独自ドメインで、公開場所に、apple-app-site-associationファイルを用意

例:

ttps://yourdomain.com/.well-known/apple-app-site-association

MIME が application/json にする。

apple-app-site-association ファイルの中身

{
  "applinks": {
    "details": [
      {
        "appIDs": ["TEAMID.bundleid"],
        "paths": [ "/invite*" ]
      }
    ]
  }
}

appIDsの部分の例

TEAMID:8VA6Uxxxxx
bundleid:com.example.app1
appIDs:8VA6Uxxxxx.com.example.app1

Content-Typeをapplication/jsonへ

.well-known/.htaccess を設置

<Files "apple-app-site-association">
    ForceType application/json
    Header set Content-Type "application/json"
</Files>

確認

$ curl -I ttps://example.com/.well-known/apple-app-site-association

HTTP/2 200
server: nginx
date: Thu, 04 Dec 2025 18:18:45 GMT
content-type: application/json