react-native-idfa
react-native-idfa copied to clipboard
getting null idfa
i am getting IDFA{ } while i was not getting null before
this is the implementation :
+1
try {
const idfa = await IDFA.getIDFA()
console.log("idfa", idfa)
analytics.setIDFA(idfa)
} catch (errorIdfa) {
console.error(errorIdfa)
}
@AmirDoreh be careful with this promises await mixed with then and nested thens. you can find more here -> https://www.smashingmagazine.com/2020/11/comparison-async-await-versus-then-catch/