For the complete documentation index, see llms.txt. This page is also available as Markdown.

Installation

How to add Amply to your mobile app. One dependency, three platforms — pick the tab that matches your stack.

Installing Amply means adding a single package to your build config, then calling the SDK from your app's entry point. This page only covers the dependency step. Go to the platform-specific Quickstart once the package resolves.

Two ways to integrate Amply. This guide is the by-hand path. The other is AI-assisted integration: connect the Amply MCP and the amply-integration skill to your AI coding assistant (Claude Code or Codex CLI) and it installs the SDK, forwards the events Amply needs for targeting, and hands you a reviewable diff — the same result as the steps below, in one pass.

Current versions

Other pages in this guide reference "the current version" — the table below is the single source of truth. When a new SDK ships, only this page needs updating.

Package
Version

iOS / Android SDK

0.17.3

React Native SDK

0.18.1

Requirements

Platform
Minimum OS
Other

iOS SDK

iOS 15.0 (CocoaPods) · iOS 14.0 (Swift Package Manager)

Xcode 15+, Swift 5.9+

Android SDK

Android 5.0 (API 21)

Kotlin 1.9+, AGP 8.0+

React Native

RN 0.79+, Expo SDK 54+

iOS 15.1+ / Android API 24+, New Architecture enabled

Credentials

You need three values from the Amply dashboard before the SDK will run:

  • appId — your app's identifier (e.g., com.acme.app)

  • apiKeyPublic — short key used to identify your app

  • apiKeySecret — longer key used to sign requests

In the Amply dashboard, open your application from the Applications list, go to its API Keys tab, and copy them into the config shown in the Quickstarts.

Install

In Xcode: File → Add Package Dependencies… and enter:

Pick the version rule (recommended: Up to Next Major Version from 0.17.3) and add AmplySDK to your target.

Or declare it in Package.swift:

CocoaPods

The CocoaPods public catalog stops accepting new versions on December 2, 2026, so pod 'AmplySDK', '~> X' will not see newer releases. Point your Podfile at the podspec of the version you want instead:

Then install, and open the generated .xcworkspace in Xcode:

To update later, change the version in that URL and run pod install again.

Info.plist

No mandatory entries. If you plan to read the advertising identifier (IDFA) for attribution, add NSUserTrackingUsageDescription to Info.plist and call the App Tracking Transparency prompt yourself — the SDK will pick up the resulting status.

Continue with the iOS Quickstart to wire the SDK into your AppDelegate.

Gradle (Kotlin DSL)

Add to your app module's build.gradle.kts:

Gradle (Groovy)

Repositories

The SDK ships to Maven Central. If your settings.gradle.kts already lists mavenCentral() (the default for new Android projects) you don't need to change anything:

Permissions

No permissions are required to initialize the SDK. INTERNET (already granted by default) is used to send events. The SDK does not add the AD_ID permission and does not collect the Google advertising ID by default. To collect it, see Advertising ID.

Continue with the Android Quickstart to wire the SDK into your Application class.

npm / yarn

or

Expo

Add the Amply config plugin to app.json:

Then run a prebuild, so the native projects are generated with the SDK in them:

The native module links automatically. The plugin is what puts built-in campaigns into your build: at prebuild it copies the bundle files into the native projects. Without bundle files it changes nothing, so it is safe to add now. If an older guide told you to remove it, keep it.

Bare React Native

Autolinking picks up the module after yarn install. On iOS, run pod install — it also brings in the native iOS SDK, so there is nothing to add to your Podfile:

See React Native integration → iOS for how the native SDK arrives and what your CI needs.

No extra Gradle config is required on Android.

See the Requirements table above for minimum versions.

Continue with the React Native Quickstart to initialize the SDK in your root component.

Last updated