Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/118.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Appcelerator-如何在iOS9应用程序中添加通用链接支持_Ios_Appcelerator_Appcelerator Titanium_Ios Universal Links - Fatal编程技术网

Appcelerator-如何在iOS9应用程序中添加通用链接支持

Appcelerator-如何在iOS9应用程序中添加通用链接支持,ios,appcelerator,appcelerator-titanium,ios-universal-links,Ios,Appcelerator,Appcelerator Titanium,Ios Universal Links,我想让我的用户打开我们的应用程序(如果安装了,否则重定向到应用商店的应用程序页面),每当用户点击我们网站的网址 我发现从iOS-9开始,通用链接是满足上述要求的一种方式。我也知道Web服务器和Apple Developer portal上要介绍的要点 唯一的问题是如何在Appcelerator Tianium应用程序中启用关联域 提前感谢您提供的任何线索或帮助。我们在我们的生产应用程序上为ios+android提供了通用链接(基于: 1) 将Apple Dev Center上的关联域添加到应用程

我想让我的用户打开我们的应用程序(如果安装了,否则重定向到应用商店的应用程序页面),每当用户点击我们网站的网址

我发现从iOS-9开始,通用链接是满足上述要求的一种方式。我也知道Web服务器和Apple Developer portal上要介绍的要点

唯一的问题是如何在Appcelerator Tianium应用程序中启用关联域


提前感谢您提供的任何线索或帮助。

我们在我们的生产应用程序上为ios+android提供了通用链接(基于:

1) 将Apple Dev Center上的关联域添加到应用程序->这将生成一个新的配置文件,您将使用该配置文件在Tianium中构建

2) 您需要显式编辑Entitlments.plist文件,通常由Ti自动生成。要获取此文件的副本,请执行以下操作:

a) Build app for device
b) Navigate to project\build\iphone
c) Find the generated Entitlments.plist file
3) 将此文件复制到项目的根文件夹,并在“dict”节点下添加以下内容:

不幸的是,这个功能在sdk 5.X中被破坏了,它在这里被修复了:(一行代码),但在我听说的5.4.0版本(计划于6月发布)之前,它不会包含在正式的.GA sdk中


如果你有更多的问题,群聊也是一个很好的提问的地方(一群活跃的用户)

有了这些,我测试了,4个月后,它又在iOS上运行了一次。如果您对夜间构建没有任何保留,您可以直接使用它。感谢您对@Boarnoah的巨大帮助!我很快就会试试这个。顺便说一句,我怎样才能加入Ti Slack组?@Manaday您应该能够连接并创建Slack帐户。这需要邮件邀请。你能帮我在m.k.mavani[在]gmail.com上获得邀请吗?@Boarnoah我已经尝试了你给出的步骤:在App ID中启用关联域,并为此创建了新的临时证书。我还在我的项目中添加了authentications.plist。但当我尝试在设备上安装软件包时,它会显示类似“无效授权”的错误。一旦我禁用关联域并为应用id创建新证书,应用就会安装。你能在这里指导我如何在我的设备上安装adhoc软件包吗。。?
<key>com.apple.developer.associated­domains</key>
<array>
  <string>applinks:www.example.com</string> 
</array>
Ti.App.iOS.addEventListener('continueactivity', function(e){
  //Since this event can be fired from multiple cases 
  //we need to check if it was a deeplink that fired it
  if(e.activityType === "NSUserActivityTypeBrowsingWeb"){
    //Since it WAS from a deeplink, the event response contains some 
    //other useful data (see the docs link)
    var deepLinkURL = e.webpageURL;
    //From here you can navigate the app to a relevant page etc...
  }
};