Adapty iOS SDK
- Configure your app
- Advanced usage
- iOS 9.0+
- Xcode 10.2+
You can also use Adapty SDK in Swift and Objective-C applications.
- Create a Podfile if you don't have one:
- Add Adapty to your Podfile:
pod 'Adapty', '~> 1.8.0'
- Save the file and run:
pod install. This creates an
.xcworkspacefile for your app. Use this file for all future development on your application.
Swift Package Manager
- In Xcode go to
Add Package Dependency...
- Choose a version and click
Nextand Xcode will add the package dependency to your project.
Configure your app
In your AppDelegate class:
And add the following to
Adapty.activate("PUBLIC_SDK_KEY", customerUserId: "YOUR_USER_ID")
If your app doesn't have user IDs, you can use
.activate("PUBLIC_SDK_KEY") or pass nil for the
customerUserId. Anyway, you can update
customerUserId later within
Adapty will log errors and other important information to help you understand what is going on. There are three levels available:
none in case you want a bit of a silence.
You can set this immediately in your app while testing, before you configure Adapty.
Adapty.logLevel = .verbose
To get up and running with subscriptions and Adapty SDK follow our Advanced usage section.
Adapty is available under the MIT license. See LICENSE for details.