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.
iOS / Android SDK
0.5.0
React Native SDK
0.5.0
Requirements
iOS SDK
iOS 14.0
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 14+ / 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 appapiKeySecret— longer key used to sign requests
Open the Amply dashboard, go to Settings → API Keys, and copy them into the config shown in the Quickstarts.
Install
CocoaPods
Add to your Podfile:
Then install:
Open the generated .xcworkspace in Xcode.
Swift Package Manager
In Xcode: File → Add Package Dependencies… and enter:
Pick the version rule (recommended: Up to Next Major Version from 0.5.0) and add AmplySDK to your target.
Or declare it in Package.swift:
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. If you want to collect the Google advertising ID for attribution, add:
Continue with the Android Quickstart to wire the SDK into your Application class.
npm / yarn
or
Expo
Amply ships an Expo config plugin. Add it to app.json:
Then run a prebuild so the native modules link:
Bare React Native
Autolinking picks up the module after yarn install. On iOS you also need to install the pod:
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.
Related
iOS Quickstart — first tracked event from a Swift app
Android Quickstart — first tracked event from a Kotlin app
React Native Quickstart — first tracked event from TypeScript
iOS integration — deep links, session lifecycle, custom properties
Android integration — deep links, custom properties, log levels
React Native integration — listeners, snapshots, Expo specifics
Last updated