AppsFlyerFramework
AppsFlyerFramework copied to clipboard
[suggestion] Read data receive by constants and check status value using enum
I'm checking the sample page to read data in onConversionDataReceive for iOS in this URL: https://support.appsflyer.com/hc/en-us/articles/207032096-Deferred-deep-linking-getting-the-conversion-data#sdk-implementation.
I think that the good approach to read important values in Swift dictionary with the specific keys is using the constants, for example when I need to access the status (organic or non-organic) value and check if the first launch with respective keys: "af_status" and "is_first_launch" in installData param I don't use any variable/constant to find this data.
We can implement something like this to the data keys and check status value:
And if the Appsflyer needs to change the keys, it'll not a problem for us that use the sdk because we use the constant to read the data receive.