iOS 10.3通用链接不起作用

Nic*_*ius 10 ios ios-universal-links ios10 aasa

我已经经历了几乎所有关于我的Universal Links问题,我可以找到并且还没有任何运气.为了记录,这一切似乎都通过了Branch的验证器.

我正在运行iOS 10.3并在https后面提供我的aasa文件,所以理论上我不需要签名.

这就是我的立场:

安装应用程序后,为我的登台服务器拖尾Heroku的日志给了我:

7-07-27T17:24:59.818724+00:00 heroku[router]: at=info method=GET path="/.well-known/apple-app-site-association" host=trueey-staging.herokuapp.com request_id=54b817e2-1d89-4c7a-9ed8-f52bdb3ad46e fwd="24.23.197.78" dyno=web.1 connect=1ms service=6ms status=200 bytes=618 protocol=https
2017-07-27T17:24:59.812926+00:00 app[web.1]: Started GET "/.well-known/apple-app-site-association" for 24.23.197.78 at 2017-07-27 17:24:59 +0000
2017-07-27T17:24:59.814845+00:00 app[web.1]: Processing by Web::AppSiteController#show as */*
2017-07-27T17:24:59.815538+00:00 app[web.1]: Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
Run Code Online (Sandbox Code Playgroud)

1)我的权利:

applinks:trueey-staging.herokuapp.com
applinks:https://trueey-staging.herokuapp.com
Run Code Online (Sandbox Code Playgroud)

这些是一回事吗?可能,但让我们双倍下降

2)我的apple-app-site-association文件,路由和Rails控制器提供它:

apple-app-site-association(住在/publicas apple-app-site):

{
    "applinks": {
        "apps": [ ],
        "details": [
            {
                "appID": "[Prefix].[AppId]",    
                "paths": [ "*", "/" ]
            }
        ]
    }   
}
Run Code Online (Sandbox Code Playgroud)

路线(S):

  get "/apple-app-site-association", to: "web/app_site#show"
  get "/.well-known/apple-app-site-association", to: "web/app_site#show"
Run Code Online (Sandbox Code Playgroud)

控制器:

module Web

class AppSiteController < ApplicationController
    def show
        data = File.read("#{Rails.root}/public/apple-app-site")
        render json: data
    end
end

end
Run Code Online (Sandbox Code Playgroud)

3)在我的AppDelegate中,我已经实现了应用程序:continueUserActivity:恢复Handler:功能,它被设置为执行与调用didFinishLaunchingWithOptions时完全相同的事情(再打印出大量的====for kick)

但是...

没有.部署到分段后,我在手机上加载应用程序,浏览我们的共享功能以生成链接,将其保存到备注中,然后单击它以使其在Safari中打开.长按没有做任何事情,并且没有其他迹象表明Safari正在打开而不是应用程序.设备日志似乎没有表明任何问题,但也许我不是在寻找合适的东西?

HALP.

Nic*_*ius 0

最终让它发挥作用的是添加一个application-identifier权利,其值类似于 AASA 文件中的 appID;我使用通配符 $() 作为后缀,因此理论上它可以跨部署环境工作。不知道这应该来自哪里,也不知道苹果文档的部分做了什么假设,但是......应用程序现在从链接打开!