首次打开应用程序时如何从动态链接获取长链接? [英] How to get long-link from dynamic link when opening app for the first time?
问题描述
当我单击动态链接时,我将被重定向到应用商店,然后从那里下载该应用.我真正需要的是动态链接的长链接,因为其中有需要提取的数据.
When I click on a dynamic link I will be redirected to the appstore and from there I download the app. What I really need is the long link of the dynamic link because I got data in it which I need to extract.
当我第一次启动应用程序时,将打开此方法:
This method will be opened when I start the app for the first time:
-(Bool)application:(UIApplication *)application openURL:(NSURL *)url options:(NSDICtionarry<NSString *, id>options).
推荐答案
此处的术语说明: 深层链接->这就是您要放入动态链接的内容; 长动态链接->具有您的深层链接和与动态链接行为相关的参数的动态链接; 简短的动态链接-与long相同,但具有简短的表示形式;
Clarification of terms here: deep link -> this is what you will put inside dynamic link; long dynamic link -> dynamic link that has your deep link and bunch of parameters related to dynamic link behavior; short dynamic link - the same as long but has short representation;
要存储更多数据,您需要将数据作为参数添加到深层链接.例如,使用https://example.com?promotionID=abc&openViewName=startingViewOptionB&loadImageOnPromo=imageSmall
To store more data you need to add your data as parameters to deep link. For example instead of deep link https://example.com
you use https://example.com?promotionID=abc&openViewName=startingViewOptionB&loadImageOnPromo=imageSmall
让我知道是否有问题.
这篇关于首次打开应用程序时如何从动态链接获取长链接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!