@roborox/react-native-iad
v1.0.0
Published
Fetch apple ads attribution
Downloads
3
Maintainers
Readme
react-native-iad
WARNING: IOS ONLY
This native module can fetch Apple's ads attribution
More info about Apple Search Ads: https://developer.apple.com/documentation/iad/setting_up_apple_search_ads_attribution/
Getting started
Step 1
- Install package
npm install @roborox/react-native-iad -SE
Step 2
- In XCode, follow the instructions in Step 1 to add the iAd framework
- In XCode, in the project navigator, right click
Libraries
➜Add Files to [your project's name]
- Go to
node_modules
➜react-native-apple-ads-attribution
and addRNAppleAdsAttribution.xcodeproj
- In XCode, in the project navigator, select your project. Add
libRNAppleAdsAttribution.a
to your project'sBuild Phases
➜Link Binary With Libraries
- Run your project
Usage
import RNIAp from '@roborox/react-native-iap';
const attributionData = await RNIAp.getAttributionData();
With typescript support
More
- Idea: https://raw.githubusercontent.com/kenmaca/react-native-apple-ads-attribution