Skip to content

amply-tools/amply-sdk-ios

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AmplySDK for iOS

Amply is in-app orchestration for mobile apps: growth, product, and marketing teams decide which experience each user gets, and when — from a dashboard, without a new release or ongoing engineering work. Engineering integrates the SDK once; the team runs the experiments from then on.

Amply SDK for mobile app engagement, campaign management, and analytics.

Requirements

  • iOS 14.0+
  • Xcode 15.0+
  • Swift 5.9+

Installation

Swift Package Manager (Recommended)

Add AmplySDK to your project via Xcode:

  1. File → Add Package Dependencies
  2. Enter: https://github.com/amply-tools/amply-sdk-ios.git
  3. Select version rule (e.g., "Up to Next Major Version")

Or add to your Package.swift:

dependencies: [
    .package(url: "https://github.com/amply-tools/amply-sdk-ios.git", from: "0.1.7")
]

Then add to your target:

.target(
    name: "YourApp",
    dependencies: ["AmplySDK"]
)

CocoaPods

Add to your Podfile:

pod 'AmplySDK', '~> 0.1.7'

Then run:

pod install

Manual Installation

  1. Download AmplySDK.xcframework.zip from the latest release
  2. Extract the XCFramework
  3. Drag AmplySDK.xcframework into your Xcode project
  4. In your target's "Frameworks, Libraries, and Embedded Content", ensure it's set to "Embed & Sign"

Quick Start

import AmplySDK

// Initialize the SDK (typically in AppDelegate or App init)
AmplySDK.shared.initialize(
    appId: "your-app-id",
    apiKey: "your-api-key"
)

// Track custom events
AmplySDK.shared.track(
    event: "button_clicked",
    properties: ["button_id": "purchase", "screen": "home"]
)

// Set user properties
AmplySDK.shared.setUserProperty(key: "subscription_tier", value: "premium")

// Get active campaigns
AmplySDK.shared.getCampaigns { campaigns in
    for campaign in campaigns {
        print("Campaign: \(campaign.name)")
    }
}

Features

  • Event Tracking - Track user actions and custom events
  • Campaign Management - Target users with personalized campaigns
  • User Properties - Store and manage user attributes
  • Session Management - Automatic session tracking
  • Deep Linking - Handle campaign-triggered deep links
  • Rate & Review - Prompt users to rate your app

Documentation

For detailed documentation, visit Amply Documentation.

Support

License

AmplySDK is available under the Apache 2.0 license. See the LICENSE file for details.

About

Resources

License

Stars

1 star

Watchers

0 watching

Forks

Packages

 
 
 

Contributors