CocoaPods trunk is now read-only. Read more on the blog.

ManagedStatsOC 0.1.22

ManagedStatsOC 0.1.22

TestsTested ✗
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release May 2016

Maintained by Jacqueline Ruiz.



  • By
  • Bob Pascazio

Requirements

Installation

ManagedStatsOC is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'ManagedStatsOC', '~> 0.1'

Usage

Begin by setting up an account with ManagedApps.

Tap on '+ New App' and enter the application name.

Search for appKey and apiKey under 'MY APPS' -> 'Information' -> 'VIEW APP KEY' & 'VIEW API KEY'. This information will be used for the next step.

Objective - C

#import "ManagedStatsOC.h"

Add the following code to AppDelegate didFinishLaunchingWithOptions method,

[ManagedStats setAppKey:@"PUT_APP_KEY_HERE" setApiKey:@"PUT_API_KEY_HERE"];
[ManagedStats appLaunched];

Add the following code to AppDelegate applicationWillEnterForeground method,

[ManagedStats sessionStart];

Swift

Make sure you have 'use_frameworks!' as part of your podfile documentation.

import ManagedStatsOC

Add the following code to AppDelegate didFinishLaunchingWithOptions method,

ManagedStats.setAppKey("PUT_APP_KEY_HERE", setApiKey: "PUT_API_KEY_HERE")
ManagedStats.appLaunched()

Add the following code to AppDelegate applicationWillEnterForeground method,

ManagedStats.sessionStart()

Author

Bob Pascazio, [email protected]

License

ManagedStatsOC is available under the MIT license. See the LICENSE file for more info.