「Unity/URLからアプリ起動/iOS」の版間の差分
提供: 初心者エンジニアの簡易メモ
| 行1: | 行1: | ||
==iOSの場合== | ==iOSの場合== | ||
| − | ===独自ドメインで、公開場所に、apple-app-site- | + | ===独自ドメインで、公開場所に、apple-app-site-associationファイルを用意== |
例: | 例: | ||
| 行26: | 行26: | ||
bundleid:com.example.app1 | bundleid:com.example.app1 | ||
appIDs:8VA6Uxxxxx.com.example.app1 | appIDs:8VA6Uxxxxx.com.example.app1 | ||
| + | </pre> | ||
| + | |||
| + | ====Content-Typeをapplication/jsonへ==== | ||
| + | .htaccess | ||
| + | <pre> | ||
| + | <Files "apple-app-site-association"> | ||
| + | ForceType application/json | ||
| + | Header set Content-Type "application/json" | ||
| + | </Files> | ||
</pre> | </pre> | ||
2025年12月5日 (金) 03:31時点における版
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へ
.htaccess
<Files "apple-app-site-association">
ForceType application/json
Header set Content-Type "application/json"
</Files>
