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

@fload-ai/attribution-cordova

v1.1.0

Published

Fload install attribution for Cordova apps: Apple Ads through AdServices on iOS, the Google Play Install Referrer on Android.

Readme

Fload Attribution for Cordova

Counts your app's installs in Fload and attributes them: to Apple Ads through Apple's AdServices token on iOS, and to the Google Play Install Referrer on Android. No IDFA, no advertising ID, no App Tracking Transparency prompt, no events.

This plugin is a thin bridge over Fload's native SDKs, fload-attribution-ios and fload-attribution-android. Everything they do (the offline queue, retries, what is sent) is described in their READMEs.

Needs cordova-ios 8 or later (the plugin is a Swift package) and cordova-android 13 or later. iOS 15 or later, Android 7 (API 24) or later.

Install

cordova plugin add @fload-ai/attribution-cordova

iOS. cordova-ios 8 adds the plugin as a Swift package, and the plugin pulls in github.com/fload-ai/fload-attribution-ios. Set the deployment target in your config.xml:

<preference name="deployment-target" value="15.0" />

Android. The Kotlin SDK comes from JitPack. The plugin adds the JitPack repository (for the com.github.fload-ai group only) and the dependency to your app's Gradle build. It uses version 1.1.0 of the Android SDK by default. To pin another 1.x version, use 1.1.0 or later:

cordova plugin add @fload-ai/attribution-cordova --variable FLOAD_ATTRIBUTION_ANDROID_VERSION=1.1.0

Use

document.addEventListener('deviceready', async () => {
  // Once, early:
  await FloadAttribution.configure({ key: 'fload_pk_…' });

  // Optional: link your user id (e.g. RevenueCat's appUserID) to the install.
  await FloadAttribution.setUserId({ id: appUserId });
});

The key is your app's public write key from Fload. It can only report installs for that one app, so it is safe to ship in the app.

| Call | What it does | | --- | --- | | configure({ key, endpoint?, logLevel? }) | Starts the SDK. Returns at once; the native SDK works in the background. A second call is ignored. | | setUserId({ id }) | Links your user id to this install. Safe before configure and on every launch; each id is sent once. | | getInstallReference() | { installReference }: this install's random id, or null until the SDK has loaded. For support questions. |

Every call returns a Promise. endpoint is for testing against your own server; logLevel is one of none, error, warning (the default), info, debug. The SDKs never log the key, Apple's token, the referrer or a user id. TypeScript types are in types/index.d.ts.

Privacy

What the SDK collects and how to answer Apple's privacy questions and Google Play's Data safety form: see the iOS and Android READMEs. The iOS SDK ships its PrivacyInfo.xcprivacy.

Example app

example/ sends to a local stub of Fload's ingest, never to production:

npm run stub-ingest                 # terminal 1, in this folder: listens on :3999
cd example && npm install && npm run setup
npx cordova run android             # or: npx cordova run ios
curl -s localhost:3999/__requests   # what the stub received

The Android emulator reaches your machine at 10.0.2.2, the iOS simulator at localhost. The example allows plain http to those hosts only.

Development

  • npm test: the JS layer, with cordova/exec faked.
  • npm run test:ios-host: the iOS argument checks on the host (swiftc, no Xcode needed), compiled with the pinned fload-attribution-ios sources.
  • npm run test:android: the Android argument checks (JVM unit tests).

License

MIT. See LICENSE.