
Description
react-native-idfa is a small React Native module that reads the advertising identifier: IDFA on iOS and the advertising ID on Android. It supports React Native versions above 0.56, with or without CocoaPods. If you use CocoaPods, the README says AdSupport is added to your Podfile automatically. Otherwise, you add the AdSupport framework under Link Binary With Libraries. On iOS 14 and above, App Tracking Transparency permission must be granted before the IDFA is available, and if it is not granted, getIDFA() returns an empty string. The README also explains how to force a specific version of the Google Play services ads library in your build.gradle. It warns that Google's version 17.0.0 introduced breaking changes, so the SDK throws an error unless your manifest is configured as Google's Ad Manager guide describes. Because it is a React Native repository, the library ships untranspiled code with Flow types. The project is hosted on GitHub.…
Highlights
- Reads the iOS IDFA and the Android advertising ID
- Works with React Native above 0.56
- CocoaPods or manual AdSupport setup
- Version override for Google Play services ads
- Flow types included
Ratings & Reviews
No ratings yet
Be the first to rate react-native-idfa.
People also visit
react-native-idfa FAQ
What does react-native-idfa do?
It reads the advertising identifier from JavaScript on iOS and Android.
How do I install it on iOS?
With CocoaPods, the README says AdSupport is added automatically. Without it, add the AdSupport framework under Link Binary With Libraries.
Why does getIDFA() return an empty string?
On iOS 14 and above, App Tracking Transparency permission has to be granted. Without it, the README says the result is empty.
Does Google's version 17.0.0 need changes?
The README says version 17.0.0 introduced breaking changes, and the SDK throws an error unless your manifest is configured as Google's guide describes.
Which React Native versions are supported?
Versions above 0.56, according to the README.
What are the best react-native-idfa alternatives?
Popular alternatives to react-native-idfa include react-native-device-info, react-native-version-number and react-native-version-info. See all react-native-idfa alternatives



















