Skip to content

managedapps/ManagedStatsOC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ManagedStatsOC

[![CI Status](http://img.shields.io/travis/Bob Pascazio/ManagedStatsOC.svg?style=flat)](https://travis-ci.org/Bob Pascazio/ManagedStatsOC) Version License Platform

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, bob@bytefly.com

License

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published