npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@akxks_/react-native-apple-ads-attribution

v1.0.4

Published

React Native Apple Ads attribution package using AdServices only, without deprecated iAd/ADClient dependencies.

Downloads

180

Readme

@akxks_/react-native-apple-ads-attribution

React Native Apple Ads attribution for iOS using Apple's supported AdServices flow only.

This package exists because older Apple Ads attribution libraries still reference the deprecated iAd / ADClient API. That can fail modern iOS builds with linker errors such as:

Undefined symbols for architecture arm64
Symbol: _OBJC_CLASS_$_ADClient

This package keeps the familiar React Native API shape, but removes the unsupported legacy fallback and uses the supported AdServices token + attribution request path instead.

Why this package is needed

  • Modern Xcode / EAS builds can fail when a package still links against ADClient
  • Apple’s supported attribution path is AdServices, not iAd
  • Some apps only need a safe way to determine attribution and pass the token or result to their backend
  • Existing apps may want a drop-in replacement with minimal JS changes

What changed from the older package

  • Removed iAd / ADClient
  • Kept AdServices
  • Kept the same exported method names for easier migration
  • getiAdAttributionData() now rejects with a clear unsupported error instead of attempting deprecated behavior

Installation

npm install @akxks_/react-native-apple-ads-attribution

If you use Expo with prebuild:

npx expo prebuild --clean --platform ios

Usage

import AppleAdsAttribution from "@akxks_/react-native-apple-ads-attribution";

const attributionData = await AppleAdsAttribution.getAttributionData();
const adServicesAttributionToken =
  await AppleAdsAttribution.getAdServicesAttributionToken();
const adServicesAttributionData =
  await AppleAdsAttribution.getAdServicesAttributionData();

API

getAttributionData()

Fetches attribution data using AdServices.

getAdServicesAttributionToken()

Returns an Apple Ads attribution token generated on-device. The token is typically valid for 24 hours.

getAdServicesAttributionData()

Generates a token and requests attribution data from Apple’s attribution API.

getiAdAttributionData()

Rejected intentionally because the deprecated iAd / ADClient path is not supported in this package.

iOS support

  • iOS 14.3+
  • Real device required for token generation
  • Simulator is not supported for attribution token generation

Migration from older packages

Replace:

npm uninstall react-native-apple-ads-attribution @hexigames/react-native-apple-ads-attribution

With:

npm install @akxks_/react-native-apple-ads-attribution

Then update imports:

import AppleAdsAttribution from "@akxks_/react-native-apple-ads-attribution";

Notes

  • On non-iOS platforms, methods return null just like the original package behavior
  • If attribution is unavailable, handle errors with try/catch
  • If your backend only needs the attribution token or a boolean attribution flag, this package works well as a minimal bridge

License

MIT