标签: ios-universal-links

如何在当前应用程序中触发NSUserActivity continuation(Universal Links opening)?

iOS9中的Universal Links使用Handoff机制查看应用程序中的链接而不是浏览器:每当点击Universal Link时,iOS会激活相应的应用程序,并-application:continueUserActivity:restorationHandler使用包含Universal Link URL的用户活动进行调用(请参阅Apple环球指南)链接).

我想手动触发这个机制,即创建一个NSUserActivity具有webpageURL属性的实例并将其分派给当前应用程序处理-application:continueUserActivity:restorationHandler.有没有办法实现这个目标?

目前我只是-application:continueUserActivity:restorationHandler直接打电话,但这感觉不对,我想以更恰当的方式实施它.

ios handoff ios-universal-links nsuseractivity

7
推荐指数
0
解决办法
523
查看次数

通用链接 - 禁用右上角链接

我目前通过使用URL Schemes来启动我的本机应用程序来补充我的Web应用程序.从iOS 9开始,我的用户现在受到一个弹出窗口的挑战,该弹出窗口显示"在应用程序名称中打开".我已经想过如何通过使用不同的域使用Universal Links来消除这种情况,然后我正在启动的应用程序却遇到了问题.

关键点

  • 应用程序作为企业分发在应用程序商店外部分发.因此,如果我理解正确,智能应用横幅不适用.
  • 如果我的应用程序未安装,我的通用链接Web位置将托管有关如何安装它的页面.
  • 如果用户启动应用程序但未安装它,则会正确获取我的安装页面
  • 一旦进入应用程序,如果用户按下右上角的域链接,他们将无法再次启动应用程序

我遇到的问题是,如果用户按下右上角的链接/面包屑,应用程序将不再启动.它总是将用户引导到安装页面.我知道如果我在这个页面上下拉有一个打开按钮,可以将我带到应用程序,或者如果我长按我的链接,我也可以让它启动我的应用程序.但是,我无法让我的用户理解这一点.

有没有办法关掉右上角的链接?

ios ios9 ios-universal-links

7
推荐指数
0
解决办法
690
查看次数

Apple的App Search API验证工具 - "错误无法获取应用程序网站关联"

我试图让这个Apple的API验证器apple-app-site-associationhttps://signin.methodwarehouse.com上验证我的文件.验证器说"错误无法获取应用程序站点关联".但是,可以在https://signin.methodwarehouse.com/apple-app-site-association上找到该文件.此JSON文件的内容直接从Apple的文档中复制,因此它应该可以正常验证.我究竟做错了什么?为什么这个文件没有通过validationg?

Apple的API Validator的屏幕截图

ios ios-universal-links

7
推荐指数
1
解决办法
1933
查看次数

没有具有域权限的应用

我正在尝试通过通用链接集成深度链接。一切都在开发者帐户上很好地解决了。关联域也在应用 ID 上启用。

在服务器端 myapp.com/apple-app-site-association 可用。但是苹果搜索验证器总是抛出这个错误。

我不确定它到底是什么意思..?

如果有人可以帮助我,那就太好了。

谢谢

ios swift ios-universal-links

7
推荐指数
1
解决办法
7119
查看次数

配置apple-app-site-association文件并在服务器上传

我是iOS开发的新手.我正在使用ASP.net应用程序在iOS App中实现Universal Links.
我在Associated Domains下的功能中定义了我的关联域:applinks:www.abcd.com
并且还在Apple Developer Account上的App Ids中进行配置.我认为app方面的工作已经完成.

但我认为apple-app-site-association文件存在问题.

我在一个简单的文本文件中写了json,如下所示

{
  "applinks": {
    "apps": [],
    "details": [
    {
      "appID": "8T8932TY.com.AppName”,
      "paths": ["*"]
    }
    ]
  }
}
Run Code Online (Sandbox Code Playgroud)

现在我被困在这里.我的应用程序定位于iOS 9及更高版本.我很困惑,这个文件的扩展名是什么,命名为apple-app-site-association.如果我需要使用新证书登录.以及如何在服务器端上传它.

请伙计们帮助我.我正在寻找这个,但没有得到满意的答案.

谢谢

ios ios-universal-links

7
推荐指数
2
解决办法
1万
查看次数

iOS Universal Link无法在某些设备上运行

我根据Apple文档设置了Universal Link的所有要求.当我开始在真实设备上进行测试时,链接对其中一些设备不起作用.iOS 11.1.1上的所有设备都与操作系统版本无关.有些设备可以打开应用程序,当我长按链接显示"在xxx应用程序中打开"但有些设备未打开应用程序也不会长按显示选项.已经变Build ConfigurationRelease.

反正有没有找到原因?工厂重置可以解决这个问题吗?

ios ios-universal-links

7
推荐指数
1
解决办法
619
查看次数

如何在 ios safari 上禁用支持通用链接的页面的“在应用程序中打开”横幅?

通过 apple-app-site-association 将路径注册为通用链接后,我看到在 iOS safari 上的页面加载中,当我安装应用程序时,系统将在顶部注入一个“在应用程序中打开”横幅屏幕。

我想禁用此横幅,同时保留对此页面的通用链接支持。我没有看到任何官方方法可以做到这一点;有没有任何方法,无论多么古怪或非常规,可以实现这一点?

mobile-safari ios ios-universal-links

7
推荐指数
1
解决办法
1万
查看次数

How to serve apple-app-site-association file on /apple-app-site-association page in ReactJS

I'm having a lot of trouble with serving a apple-app-site-association file in ReactJS project.

I've searched a lot of GitHub issues pages (for ReactJS, Gatsby, and Angular), forums, and a lot of online communities, and it seems that I can't find a solution for this.


What I've tried is:

  • Adding the file into public/.well-known folder.
  • Adding a separate route via react-router on path "/apple-app-site-association" and returning an tag with file
  • Adding <link rel="apple-app-site-association" href="%PUBLIC_URL%/.well-known/apple-app-site-association"> into public/index.html

Testing through the …

ios reactjs ios-universal-links apple-app-site-associate

7
推荐指数
1
解决办法
3481
查看次数

iOS 深层链接:从应用商店安装后打开应用

我正在尝试实现一个类似于这个问题的功能Android Deep linking: Use the same link for the app and the play store but for iOS app。目前,我的应用程序使用UniversalLink(例如:https://www.example/com/code/000000),如果应用程序未安装服务器,则通过链接重定向到App Store(https://apps.apple.com) /us/app/instagram/id389801252 - 例如)但是安装后如何打开应用程序内的链接?从这个信息https://support.google.com/authorizedbuyers/answer/6167336?hl=en 我知道需要一些参考,例如(https://apps.apple.com/us/app/instagram/id389801252?mt= 000000 ) 什么是 ?mt=0000 <- 这是深层链接还是其他?

如何实现这个算法在此输入图像描述

deep-linking ios swift ios-universal-links firebase-dynamic-links

7
推荐指数
0
解决办法
1228
查看次数

Flutter 中的 iOS 通用链接

我似乎无法在我的 Flutter 应用程序上使用 iOS 通用链接。以下是我设置通用链接所采取的步骤:

  • 安装flutter uni_links包

  • 上传了以下 apple-app-site-association(包含团队 ID 和捆绑包标识符的实际值):

    {
      "applinks": {
       "details": [
            { 
                "appID": "xxxxxxx.com.bundleIdentifier", 
                "paths": [ "*" ], 
                "appIDs": ["xxxxxxx.com.bundleIdentifier"], 
                "components": [ 
                    { "/": "*" } 
                ] 
            }
       ]
    }}
    
    
    Run Code Online (Sandbox Code Playgroud)
  • 通过https://branch.io/resources/aasa-validator/验证了 apple-app-site-association 文件(值得注意的是,我无法使用 Apple 的 appsearch-validation-tool 进行验证 - 收到错误:“无法提取所需的内容)通用链接的信息。”)

  • 在我的项目功能中添加了关联的域: 来自 xcode 的屏幕截图

在我的移动设备上打开/usr/bin/xcrun simctl openurl或单击 url(从笔记应用程序尝试过)仍然会在 safari 中打开该 url,而不是打开应用程序。

我可能会错过什么?

deep-linking ios ios-universal-links flutter

7
推荐指数
1
解决办法
5434
查看次数