Skip to content

Adjust.getAttribution gets stuck (callback not called, catch not triggered) #282

@jiri-pbk

Description

@jiri-pbk

Hello,

I'm trying to retrieve Adjust attributions using the callback API, but I'm running into a problem where:
The callback sometimes never resolves, causing the application to hang indefinitely.
Errors are not passed through, so the catch block is never triggered.
As a result, the Promise remains pending and the app gets stuck.

code example:
const adjustAttribution: AdjustAttribution = await new Promise<AdjustAttribution>((resolve, reject) => { Adjust.getAttribution((attr) => { if (attr) { resolve(attr); } else { reject(new Error("Adjust attribution is null")); } }); });

Versions:

"react-native-adjust": "5.4.4"
"react-native": "0.81.4"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions