AppsFlyerSDK / appsflyer-react-native-plugin

AppsFlyer plugin for React Native
MIT License
276 stars 197 forks source link

Error Status code failure 403 #477

Closed doanquoctoan1998 closed 1 year ago

doanquoctoan1998 commented 1 year ago

ℹ I tried to install the appsFlyer SDK into my project, but when using logEvent, I received the response 'Status code failure 403.' Please help me check if my devKey has been accepted to use appsFlyer debug. Please provide any issues you see with my configuration. My project urgently needs this SDK to proceed, so please assist me with this matter as soon as possible. Thank you very much.

Plugin Version

"react-native-appsflyer": "^6.10.3", "react-native": "^0.70.3",

Report

ℹ AppsFlyer sign-up (account) email: livestreamtest0621@gmail.com

ℹ Dev key: tYmNbpvWdPFooxGHpAchNR

ℹ framework: react native

ℹ library: appsflyer-react-native-plugin

ℹ logs: Status code failure 403

ℹ code snippets and any additional relevant information:

javascript
const initOptions = {
    isDebug: true,
    devKey: "tYmNbpvWdPFooxGHpAchNR",
    onInstallConversionDataListener: true,
    timeToWaitForATTUserAuthorization: 10,
    onDeepLinkListener: true,
    appId: "",
}

export function AFInit() {
    if (Platform.OS == "ios") {
        appsFlyer.setCurrentDeviceLanguage("EN")
    }
    appsFlyer.setAppInviteOneLinkID("oW4R")
    appsFlyer.initSdk(
        initOptions,
        result => {
            console.log("AppsFlyer initialization succeeded:", result)
        },
        error => {
            console.error("AppsFlyer initialization failed:", error)
        }
    )
    appsFlyer.getAppsFlyerUID((error, appsFlyerUID) => {
        console.log("AppsFlyer ID:", error, appsFlyerUID)
    })
}

export function AFLogEvent(name: string, values: object) {
    appsFlyer.logEvent(
        name,
        values,
        result => {
            console.log("AppsFlyer log succeeded:", result)
        },
        error => {
            console.error("AppsFlyer log failed:", error)
        }
    )
}
github-actions[bot] commented 1 year ago

👋 Hi @doanquoctoan1998 and Thank you for reaching out to us. In order for us to provide optimal support, please submit a ticket to our support team at support@appsflyer.com. When submitting the ticket, please specify:

MoritzCooks commented 11 months ago

Did you find any solution for this?

trinitiwowka commented 10 months ago

same problem

image
yvza commented 2 months ago

i got same error, pls help

"react-native-appsflyer": "^6.12.1",
"react-native": "0.63.3",
MoritzCooks commented 2 months ago

Did you check if there's maybe an adblocker that is preventing you from performing tracking calls?

yvza commented 2 months ago

i got same error, pls help

"react-native-appsflyer": "^6.12.1",
"react-native": "0.63.3",

for my problem, its resolved after fresh reinstalling. not sure why its happen earlier

mi5ha commented 2 months ago

@yvza Are you on a paid plan? Many people say that 403 happens when you are on a zero plan

yvza commented 2 months ago

@yvza Are you on a paid plan? Many people say that 403 happens when you are on a zero plan

@mi5ha yea, am on trial rn. thats true. just pick trial for testing some feature, because its required. triggering event not available in zero plan

reference: https://dev.appsflyer.com/hc/docs/testing-ios#i-get-response-403-on-install-or-event-recording