這是蘋果的應用程序站點關聯JSON:通用鏈接無法使用iOS上的9(設備)
{
"applinks": {
"apps": [],
"details": [
{
"appID": "{team_ID}.com.domain.MyApp",
"paths": [ "/activation/*"]
}
]
}
}
我已與以下命令蘋果應用程序站點關聯文件(從終端OS X 10.11):
$ cat apple-app-site-association-unsigned | openssl smime -sign -inkey /etc/pki/tls/private/{filename}.key -signer /etc/pki/tls/certs/{filename}.crt -certfile /etc/pki/tls/certs/{filename}.CA -noattr -nodetach -outform DER > apple-app-site-association
我已經把我的域的根目錄中籤蘋果應用程序站點關聯文件,我設置htaccess的以這樣的方式,內容,類型是application/pkcs7-mime:
$ curl -I https://www.domain.com/apple-app-site-association
HTTP/1.1 200 OK
Server: Apache
Content-Type: application/pkcs7-mime
...
在對項目目標的Xcode(V7.2),對「能力」我啓用了「關聯域」和我加2個applinks:
applinks:www.domain.com
applinks:domain.com
當我加載頁面(我直接從試Safari和電子郵件鏈接)https://www.domain.com/activation/myactivationcode頁面加載,並且沒有重定向到我的應用程序(頁面本身沒有重定向)。我需要從iOS 7支持我的應用程序,直到iOS 9時才使用自定義URL(myapp:// activation?code = mycode)。
有沒有其他方法可以做或我做錯了什麼?
編輯:
https://search.developer.apple.com/appsearch-validation-tool/
我嘗試了應用搜索API驗證工具,它說的通用鏈接:appSiteAssociationFile找不到
的問題是,我不明白是什麼我是否做錯了,我嘗試過,沒有簽署apple-app-site-association和不同Content-Type:JSON,plain或pkcs7-mime