How to get long-link from dynamic link when openin

2019-08-26 03:39发布

问题:

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.