@@ -129,7 +129,7 @@ @interface ADJActivityHandler()
129129@property (nonatomic , strong ) ADJOdmManager *odmManager;
130130
131131- (void )prepareDeeplinkI : (ADJActivityHandler *_Nullable)selfI
132- responseData : (ADJAttributionResponseData *_Nullable)attributionResponseData NS_EXTENSION_UNAVAILABLE_IOS(" " );
132+ deeplink : ( NSURL *_Nullable)deeplink NS_EXTENSION_UNAVAILABLE_IOS(" " );
133133
134134@end
135135
@@ -1546,6 +1546,10 @@ - (void)launchSessionResponseTasksI:(ADJActivityHandler *)selfI
15461546 [selfI.attributionHandler getAttribution ];
15471547 }
15481548
1549+ if (sessionResponseData) {
1550+ [selfI prepareDeeplinkI: selfI deeplink: sessionResponseData.deeplink];
1551+ }
1552+
15491553 selfI.internalState .sessionResponseProcessed = YES ;
15501554}
15511555
@@ -1593,7 +1597,10 @@ - (void)launchAttributionResponseTasksI:(ADJActivityHandler *)selfI
15931597 withObject: attributionResponseData.attribution];
15941598 }
15951599
1596- [selfI prepareDeeplinkI: selfI responseData: attributionResponseData];
1600+ if (attributionResponseData) {
1601+ [selfI prepareDeeplinkI: selfI deeplink: attributionResponseData.deeplink];
1602+ }
1603+
15971604}
15981605
15991606- (void )launchPurchaseVerificationResponseTasksI : (ADJActivityHandler *)selfI
@@ -1616,27 +1623,24 @@ - (void)launchPurchaseVerificationResponseTasksI:(ADJActivityHandler *)selfI
16161623}
16171624
16181625- (void )prepareDeeplinkI : (ADJActivityHandler *)selfI
1619- responseData : (ADJAttributionResponseData *)attributionResponseData {
1620- if (attributionResponseData == nil ) {
1621- return ;
1622- }
1626+ deeplink : (NSURL *)deeplink {
16231627
1624- if (attributionResponseData. deeplink == nil ) {
1628+ if (deeplink == nil ) {
16251629 return ;
16261630 }
16271631
1628- [selfI.logger info: @" Open deep link (%@ )" , attributionResponseData. deeplink.absoluteString];
1632+ [selfI.logger info: @" Open deep link (%@ )" , deeplink.absoluteString];
16291633
16301634 [ADJUtil launchInMainThread: ^{
16311635 BOOL toLaunchDeeplink = YES ;
16321636
16331637 if ([selfI.adjustDelegate respondsToSelector: @selector (adjustDeferredDeeplinkReceived: )]) {
16341638 toLaunchDeeplink = [selfI.adjustDelegate
1635- adjustDeferredDeeplinkReceived: attributionResponseData. deeplink];
1639+ adjustDeferredDeeplinkReceived: deeplink];
16361640 }
16371641
16381642 if (toLaunchDeeplink) {
1639- [ADJUtil launchDeepLinkMain: attributionResponseData. deeplink];
1643+ [ADJUtil launchDeepLinkMain: deeplink];
16401644 }
16411645 }];
16421646}
0 commit comments