How to get long-link from dynamic link when opening app for the first time?

我只是一个虾纸丫 提交于 2019-12-24 20:00:31

问题


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).

回答1:


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;

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

Let me know if have questions.



来源:https://stackoverflow.com/questions/47714987/how-to-get-long-link-from-dynamic-link-when-opening-app-for-the-first-time

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!