@@ -279,11 +279,13 @@ extension AppsFlyerDestination: DeepLinkDelegate, UIApplicationDelegate {
279279 segDLDelegate? . didResolveDeepLink ? ( result)
280280 switch result. status {
281281 case . notFound:
282+ analytics? . log ( message: " AppsFlyer: Deep link not found " )
282283 return
283284 case . failure:
285+ analytics? . log ( message: " AppsFlyer: Deep link failure! " )
284286 return
285287 case . found:
286- return
288+ analytics ? . log ( message : " AppsFlyer Deep link found " )
287289 }
288290
289291 guard let deepLinkObj: DeepLink = result. deepLink else { return }
@@ -323,54 +325,9 @@ extension AppsFlyerDestination: DeepLinkDelegate, UIApplicationDelegate {
323325 analytics? . track ( name: " Direct Deep Link " , properties: properties)
324326
325327 }
326-
327- // Uncomment the following code and alter to fit your implementation in order
328- // to collect deep linking attribution data
329-
330- //Logic to grab AppsFlyer's deep link value to instantiate correct VC
331- // guard let productNameStr = deepLinkObj.deeplinkValue else {
332- // print("Could not extract deep_link_value from deep link object")
333- // return
334- // }
335-
336- //implement your own logic to open the correct screen/content
337- // walkToSceneWithParams(product: productNameStr, deepLinkObj: deepLinkObj)
338328 }
339-
340-
341- // User logic for opening Deep Links
342- // fileprivate func walkToSceneWithParams(product: String, deepLinkObj: DeepLink) {
343- // let storyBoard: UIStoryboard = UIStoryboard(name: "Main", bundle: nil)
344- // UIApplication.shared.windows.first?.rootViewController?.dismiss(animated: true, completion: nil)
345- //
346- // let destVC = "product_vc"
347- // if let newVC = storyBoard.instantiateVC(withIdentifier: destVC) {
348- //
349- // print("[AFSDK] AppsFlyer routing to section: \(destVC)")
350- // newVC.deepLinkData = deepLinkObj
351- //
352- // UIApplication.shared.windows.first?.rootViewController?.present(newVC, animated: true, completion: nil)
353- // } else {
354- // print("[AFSDK] AppsFlyer: could not find section: \(destVC)")
355- // }
356- // }
357329}
358330
359- //MARK: - UI StoryBoard Extension; Deep Linking
360-
361- //Aditonal logic for Deep Linking
362- //extension UIStoryboard {
363- // func instantiateVC(withIdentifier identifier: String) -> DLViewController? {
364- // // "identifierToNibNameMap" – dont change it. It is a key for searching IDs
365- // if let identifiersList = self.value(forKey: "identifierToNibNameMap") as? [String: Any] {
366- // if identifiersList[identifier] != nil {
367- // return self.instantiateViewController(withIdentifier: identifier) as? DLViewController
368- // }
369- // }
370- // return nil
371- // }
372- //}
373-
374331private struct AppsFlyerSettings : Codable {
375332 let appsFlyerDevKey : String
376333 let appleAppID : String
0 commit comments