Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Panel
titleNot developing a native iOS application with Objective-C?

See the following topics to use the Appcelerator Analytics Service on other platforms:

Section
Column
width50px
Image Removed 
Column

For native Android applications built with Java, see APS Analytics for Android.

Section
Column
width50px
Image Removed 
Column

For Titanium Applications, see Appcelerator Analytics.

...

  1. Go to the Dashboard and create a new native iOS application.
  2. Download the Services SDK and get your Analytics application key.
  3. Unpack the appcelerator-sdk-ios-<VERSION>.zip file.
  4. Drag the Appcelerator.framework folder into your Xcode project's root folder if you are using Xcode 6 and above, or the  Frameworks folder if you are using Xcode 5 or below. 
  5. Select Copy items into destination… and click Finish.
  6. Select your project in the Project Navigator and click the Build Phases tab.
  7. Expand the Link Binary With Libraries section and add the  libsqlite3.dylib and libz.dylib frameworks.
  8. Click the Build Settings tab, then click the All button in the top-left corner of the tab.
  9. Expand the Linking section and add -ObjC  to Other Linker Flags.
  10. In your application delegate implementation file, import Appcelerator/Appcelerator.h.

    Code Block
    titleAppDelegate.m
    #import <Appcelerator/Appcelerator.h>
  11. In the application delegate's application:didFinishLaunchingWithOptions method, enable the service by calling the APSServiceManager's enableWithAppKey: method. 

    Code Block
    titleAppDelegate.m
    - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
    {
        [[APSServiceManager sharedInstance] enableWithAppKey:@"APS_APP_KEY"];
        return YES;
    }
    Tip

    To get your APS App key:

    1. Go to the Dashboard.
    2. Select your application from the Apps drop-down menu.
    3. Click the Overview tab.
    4. Click the Services button.
    5. Click Show Key under the Analytics , Performance and Cloud section.

The iOS application can now send user session events and make additional method calls using the APSAnalytics class .

...