Getting Started
Last updated
Last updated
The easiest way to use Antsomi in your iOS project is with . Before you begin, please ensure that you are using or higher (knowledge of Ruby syntax isn’t needed to install the SDK).
Step 1: Download CocoaPods
CocoaPods is a dependency manager for Swift and Objective-C projects. You can install CocoaPods by running the following command.
Please refer to the in case you have trouble using CocoaPods.
Step 2: Add a Podfile
In the terminal, navigate to your Xcode project directory and create a Podfile
by running the following command.
Step 3: Edit your Podfile
Add the following in your Podfile
under your project's target.
Step 4: Install AntsomiFramework SDK
To install the Antsomi SDK, navigate to your Xcode project directory and run the following command.
Step 5: Stop using your project file, YOUR-PROJECT-NAME.xcodeproj
. And start using the project workspace file created by CocoaPods, YOUR-PROJECT-NAME.xcworkspace
from now on.
Doing so will ensure that the AntsomiFramework SDK is properly loaded.
Step 1: Add Antsomi.Configuration
to the application:didFinishLaunchingWithOptions:
of your AppDelegate
.
We recommend that you make this call at the end of didFinishLaunchingWithOptions:
.
Step 2: Add registerForNotification
to the application:didRegisterForRemoteNotificationsWithDeviceToken:
of your AppDelegate
.
You have successfully integrated the Antsomi SDK with your iOS app and are sending user session and system events data to your Antsomi account. Please note that it may take a up to few minutes for your data to reflect on your dashboard.
If you haven't had your CDP365 Application ID, please follow this .