AppsFlyerSDK / AppsFlyerFramework

AppsFlyer Apple SDK
https://support.appsflyer.com/hc/en-us/articles/207032066-AppsFlyer-SDK-Integration-iOS
Other
164 stars 89 forks source link

How to use af_dp in sdk version 6.2.0 #161

Closed calistabertha closed 1 year ago

calistabertha commented 3 years ago

Hi all, please help me. When I used SDK version 4.10.4, to handle deeplink, I use af_dp to get data and redirect other screen. But when I update to sdk v6.2.0, there is no af_dp on onAppOpenAttribution. Anyone can help me?

There is my code

AppsFlyerLib.shared().appsFlyerDevKey = AppProfile.appsFlyerDevKey
        AppsFlyerLib.shared().appleAppID = AppProfile.appId
        AppsFlyerLib.shared().delegate = self
        AppsFlyerLib.shared().isDebug = true
extension AppDelegate: AppsFlyerLibDelegate {
    func onConversionDataFail(_ error: Error) {}

    func onConversionDataSuccess(_ conversionInfo: [AnyHashable : Any]) {}

    func onAppOpenAttribution(_ attributionData: [AnyHashable : Any]!) {
        guard let attribute = attributionData?[AppsflyerKey.attribute] as? String,
            let link = URL(string: attributionData?[AppsflyerKey.link] as? String ?? DefaultValue.emptyString),
            let property = link.query,
            let url = URL(string: "\(attribute)?\(property)") else { return }
        self.handleIncomingUrl(url)
    }
}
ffgiraldez commented 2 years ago

Same here

github-actions[bot] commented 1 year ago

šŸ‘‹ Hi @calistabertha and Thank you for reaching out to us. In order for us to provide optimal support, please submit a ticket to our support team at support@appsflyer.com. When submitting the ticket, please provide: