appsflyer-react-native-plugin icon indicating copy to clipboard operation
appsflyer-react-native-plugin copied to clipboard

`UnifiedDeepLinkData` type definition is different from real data

Open changwoolab opened this issue 1 year ago • 0 comments

Report

Current type UnifiedDeepLinkData is different from real data

Current type definition

export type UnifiedDeepLinkData = {
    status: "success" | "failure",
    type: "onDeepLinking",
    deepLinkStatus: 'FOUND' | 'NOT_FOUND' | 'Error',
    isDeferred: boolean,
    data: {
        campaign: string;
        deep_link_value: string;
        deep_link_sub1?: string;
        media_source: string;
        pid?: string;
        link: string,
        af_sub1?: string;
        af_sub2?: string;
        af_sub3?: string;
        af_sub4?: string;
        af_sub5?: string;
        [key: string]: any;
    }
}

Real data

data is not an object but string, and deepLinkStatus is not "Error" but "ERROR"

Screenshot 2024-09-04 at 3 32 44 PM

Plugin Version

6.12.2

On what Platform are you having the issue?

Android

What did you do?

Added validation of type "string"

What did you expect to happen?

Type should be changed

What happened instead?

data is not an object but string, and deepLinkStatus is not "Error" But "ERROR"

Please provide any other relevant information.

changwoolab avatar Sep 04 '24 06:09 changwoolab