What's New in v3.6.0:
- [Breaking] The
addAttribution
method has been renamed to setAttribution
, introducing the new ApphudAttributionData
class. This allows developers to override attribution key mappings if needed.
- Added support for custom attribution. Developers can now pass any attribution data to the
ApphudAttributionData
class, which will be fetched and displayed in all Apphud Charts.
Attribution Migration Guide:
- For Apple Search Ads, replace the
addAttribution
method with the following:
Apphud.setAttribution(data: ApphudAttributionData(rawData: [:]), from: .appleAdsAttribution, identifier: asaToken, callback: nil)
- For AppsFlyer, replace the
addAttribution
method with the following:
Apphud.setAttribution(data: ApphudAttributionData(rawData: conversionInfo), from: .appsFlyer, identifier: AppsFlyerLib.shared().getAppsFlyerUID(), callback: nil)
- For Firebase, replace the
addAttribution
method with the following:
Apphud.setAttribution(data: ApphudAttributionData(rawData: [:]), from: .firebase, identifier: appInstanceID)
- For custom attribution, use the following code:
Apphud.setAttribution(data: ApphudAttributionData(rawData: yourAttributionDataHere), from: .custom, identifier: nil)