AppsFlyerFramework icon indicating copy to clipboard operation
AppsFlyerFramework copied to clipboard

[suggestion] Read data receive by constants and check status value using enum

Open GeraldoBastos opened this issue 6 years ago • 0 comments

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:

Captura de Tela 2019-10-11 às 10 22 40

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.

GeraldoBastos avatar Oct 11 '19 13:10 GeraldoBastos