APXOR iOS SDK Integration Guide for Staging environment
Getting started with Apxor iOS SDK
Apxor provides you two easy to use plugins for your Actions. They are:
Plugin Name | Description |
---|---|
Apxor-Core | The Core Plugin is responsible for the basic event tracking |
APXSurveyPlugin | This Plugin helps you create contextual surveys to capture your users' feedback, ratings, etc. |
APXRTAPlugin | This Plugin helps you create real time actions. |
APXWYSIWYGPlugin | The WYSIWYG Plugin allows you to preview your configured actions onto your device in real time |
Adding Apxor SDK to your project
- Install CocoaPods, if you don't already have it. If you don't want to use CocoaPods, you can install ApxorSDK manually.
- If this is your first pod, run
pod init
. Add the following to the corresponding target in your Podfile and runpod install
.
use_frameworks!
pod 'Apxor-Core-staging', '2.6.4'
pod 'Apxor-CE-staging', '1.2.86'
pod 'Apxor-RTA-staging', '1.5.84'
pod 'Apxor-Survey-staging', '1.1.84'
pod 'Apxor-WYSIWYG-staging', '1.0.83' #Remove this pod for non-debug builds
Initialize Apxor iOS SDK
To Auto initialize SDK (Recommended), add the following inside your
application
plist file.Open your application's Info.plist as source code.
Copy paste the below piece of code, to create an entry for ApxorSDK.
<key>Apxor</key>
<dict>
<key>Core</key>
<string>{YOUR_APP_ID}</string>
<key>APXSurveyPlugin</key>
<true/>
<key>APXRTAPlugin</key>
<true/>
<key>APXWYSIWYGPlugin</key>
<true/>
</dict>
To manually initialize SDK (Not Recommended), call
ApxorSDK.initialize
method in yourApplicaiton
class//... #import "ApxorSDK/ApxorSDK.h" @implementation AppDelegate - (BOOL)application:(UIApplication*)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions { [ApxorSDK initializeApxorWithID:@"<YOUR_APP_ID>"]; // ... your code }
Note
To get your app ID, please email us at contact@apxor.com
Note
The
APXWYSIWYGPlugin
is only for debug purposes, make sure to remove it for production builds.
Ensuring ApxorSDK is initialised successfully
- Lookout for the following log
Note
ApxorSDK uploads data when the app is minimized to the background. If you are running from XCode (simulators or devices), do not stop the app, just press on the "home" button in order for data to be uploaded.
API Guide
Read API Guide here