Last active
January 2, 2016 21:29
-
-
Save ndurell/8363902 to your computer and use it in GitHub Desktop.
This demonstrates how to start a session with the SessionM iOS SDK. The recommended place to do this is in your application delegate as shown in this example. Please visit http://developer.sessionm.com for more details.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ExampleAppDelegate.m | |
// MyApp | |
// | |
// | |
#import "ExampleAppDelegate.h" | |
#import "SessionM.h" | |
@implementation ExampleAppDelegate | |
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions | |
{ | |
//TODO: put your app key in here. | |
SMStart(@"<YOUR_APP_KEY_HERE>"); | |
return YES; | |
} | |
//Other normal application delegate code is ommitted for this example .... | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment