Skip to content

Instantly share code, notes, and snippets.

View jeffreycamealy's full-sized avatar

Jeffrey Camealy jeffreycamealy

View GitHub Profile
@jeffreycamealy
jeffreycamealy / gist:5104279
Last active April 3, 2017 13:45
Urban Airship AppDelegate initialization code
#import "UAirship.h"
#import "UAPush.h"
============================
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
[self setupUrbanAirshipForApplication:application withLaunchOptions:launchOptions];
return YES;
}
- (void)applicationWillTerminate:(UIApplication *)application {
@jeffreycamealy
jeffreycamealy / gist:5104263
Last active December 14, 2015 14:59
Sample AirshipConfig.plist
{
/* NOTE: DO NOT USE THE MASTER SECRET */
"APP_STORE_OR_AD_HOC_BUILD" = NO; /* set to YES for production builds */
"DEVELOPMENT_APP_KEY" = "Your development app key";
"DEVELOPMENT_APP_SECRET" = "Your development app secret";
"PRODUCTION_APP_KEY" = "Your production app key";
"PRODUCTION_APP_SECRET" = "Your production app secret";
}