简体   繁体   English

安装iOS应用后的深层链接(延迟的深层链接)

[英]Deep link after iOS app installed (Deferred deep linking)

How can you solve this scenario: 您如何解决这种情况:

User is using Safari on iOS. 用户在iOS上使用Safari。 They click a link on a website that says "View Profile on our app". 他们单击网站上的链接,显示“在我们的应用程序上查看个人资料”。 The user does not have the app, they are taken to the app store to download the app. 用户没有应用程序,他们被带到应用程序商店下载应用程序。 After they open the app, the app immediately loads the profile screen (instead of the main screen). 他们打开应用程序后,该应用程序立即加载配置文件屏幕(而不是主屏幕)。

Currently in order for us to solve this problem, when the app is installed we immediately open Safari to grab the session cookie, if it matches the one on the server we load the right screen. 目前,为了解决此问题,在安装该应用程序后,我们立即打开Safari来获取会话cookie,如果它与服务器上的会话cookie匹配,则会加载右侧屏幕。 However, Apple is now rejecting our app (and others) for loading Safari at startup. 但是,Apple现在拒绝了我们的应用程序(和其他应用程序)在启动时加载Safari。

What is a valid solution that won't get rejected by Apple? 什么是Apple不会拒绝的有效解决方案?

(Also note that we were exploring IDFA - which would have worked - but Apple is rejecting apps that use IDFA if the app isn't using Ads) (还请注意,我们正在探索IDFA-本来可以,但是如果应用未使用Ads,Apple会拒绝使用IDFA的应用)

This is definitely possible without the IDFA. 没有IDFA,这绝对是可能的。

Basically, create a URL endpoint on your server that will 302 to the App Store on GET. 基本上,在服务器上创建一个URL终结点,该终结点将在GET上302到App Store。 When a user clicks this link, collect IP Address, OS, OS version, device model, screen size and other parameters and store it as a browser fingerprint. 用户单击此链接时,收集IP地址,操作系统,操作系统版本,设备型号,屏幕尺寸和其他参数,并将其存储为浏览器指纹。

Then, after the user installs your app, send the same array of meta data to your server as a device fingerprint. 然后,在用户安装您的应用程序之后,将相同的元数据数组作为设备指纹发送到您的服务器。 Your server can then match this device fingerprint to the browser fingerprint. 然后,您的服务器可以将此设备指纹与浏览器指纹进行匹配。 If there's a match, you can be very certain that the user originated from your link. 如果存在匹配项,则可以确定用户来自您的链接。

Just to give you an idea of numbers, we (at Branch ) give this service away for free and now process hundreds of millions of these match queries per day. 只是为了让您了解数字,我们(位于Branch )免费提供了此服务,现在每天处理数亿个这样的匹配查询。 We've seen that if a user will install, 99% of them will do it within the first 60 minutes. 我们已经看到,如果用户将安装,则其中有99%的用户将在前60分钟内完成安装。 Just empirically, we estimate that this mechanism, with a short window of 2 hours is very close to 100% accurate. 仅凭经验,我们估计这种机制在2小时的短窗口内非常接近100%准确。

For an added benefit, if you collect IDFA, you can drop a cookie on the browser on redirect and then store the matched pair to the IDFA to create a semi-permanent alternative to the fingerprinting mechanism I mentioned above. 为了增加好处,如果您收集IDFA,则可以在重定向时在浏览器上放置cookie,然后将匹配的对存储到IDFA,以创建上述指纹机制的半永久替代方案。 If someone clicks your link again, and you've got a cookie stored in the browser, you'll know who they are when they send their IDFA back to your service on install because you've seen that story play out before. 如果有人再次单击您的链接,并且您的浏览器中存储了一个cookie,那么当他们将IDFA发送回安装时返回您的服务时,您就会知道他们是谁,因为您之前已经看过这个故事。

The best solution requires IDFA, which you are in fact allowed to collect for the purpose of deferred deep linking. 最好的解决方案需要IDFA,实际上您可以将其收集以用于延迟深层链接。 The "Apple IDFA Scare" was a bit overblown in the media, and Apple revised its T&Cs to make it more clear. “ Apple IDFA Scare”在媒体上有点夸大其词,Apple修改了其条款和条件以使其更加清晰。 Apple also allows you to collect IDFA if you are an advertiser, for attributing installs, or for attributing post-install actions. 如果您是广告商,Apple还允许您收集IDFA,以进行安装归因,或进行安装后行为归因。 In other words, you don't have serve ads in your own app in order to collect IDFAs. 换句话说,您没有在自己的应用中投放广告来收集IDFA。

Here's a link to the current Apple policy ( https://developer.apple.com/news/?id=08282014a ), and this article from AdExchanger goes into a little more detail ( http://www.adexchanger.com/mobile/apple-throws-a-bone-to-app-marketers-blesses-idfa-for-attribution/ ) 这是当前Apple政策的链接( https://developer.apple.com/news/?id=08282014a ),而AdExchanger的这篇文章则提供了更多详细信息( http://www.adexchanger.com/mobile / apple向应用程序营销人员扔了骨头-blesses idfa进行归因/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM