Skip to content

Commit

Permalink
User-invite - extract referrrer ID if exists
Browse files Browse the repository at this point in the history
  • Loading branch information
liaz-af committed Mar 13, 2022
1 parent da5589e commit de7ea61
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions swift/basic_app/basic_app/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,13 @@ extension AppDelegate: DeepLinkDelegate {
return
}

if deepLinkObj.clickEvent.keys.contains("deep_link_sub2") {
let ReferrerId:String = deepLinkObj.clickEvent["deep_link_sub2"] as! String
NSLog("[AFSDK] AppsFlyer: Referrer ID: \(ReferrerId)")
} else {
NSLog("[AFSDK] Could not extract referrerId")
}

let deepLinkStr:String = deepLinkObj.toString()
NSLog("[AFSDK] DeepLink data is: \(deepLinkStr)")

Expand Down

0 comments on commit de7ea61

Please sign in to comment.