본문 바로가기
모바일 APP/React-Native

IDFA.getIDFA null 뜨는 에러

by 살길바라냐 2021. 9. 29.
반응형

Possible Unhandled Promise Rejection (id: 0):
Error: null
Error: null
    at Object.promiseMethodWrapper [as getIDFA] (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.themoin.remit.dev&modulesOnly=false&runModule=true:2872:36)
    at IDFA.getIDFA (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.themoin.remit.dev&modulesOnly=false&runModule=true:418868:24)
    at DeviceStore.updateDeviceInfo$ (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.themoin.remit.dev&modulesOnly=false&runModule=true:418745:136)
    at tryCatch (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.themoin.remit.dev&modulesOnly=false&runModule=true:26594:19)
    at Generator.invoke [as _invoke] (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.themoin.remit.dev&modulesOnly=false&runModule=true:26767:24)
    at Generator.next (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.themoin.remit.dev&modulesOnly=false&runModule=true:26637:23)
    at tryCatch (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.themoin.remit.dev&modulesOnly=false&runModule=true:26594:19)
    at invoke (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.themoin.remit.dev&modulesOnly=false&runModule=true:26667:22)
    at http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.themoin.remit.dev&modulesOnly=false&runModule=true:26697:13
    at tryCallTwo (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.themoin.remit.dev&modulesOnly=false&runModule=true:31451:7)

 

문제원인

해결방법 : 

해당 getIDFA()함수에 try catch 또는 catch 체인으로 에러 처리를 해준다.

IDFA.getIDFA().catch((err:any)=> console.log('getIDFA error', err))
728x90