react-native-idfa icon indicating copy to clipboard operation
react-native-idfa copied to clipboard

getting null idfa

Open AmirDoreh opened this issue 4 years ago • 1 comments

i am getting IDFA{ } while i was not getting null before

this is the implementation :

Screen Shot 2021-08-31 at 7 20 17 PM

AmirDoreh avatar Aug 31 '21 16:08 AmirDoreh

+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/

ramirobg94 avatar Aug 31 '21 19:08 ramirobg94