Skip to content

Instantly share code, notes, and snippets.

@Kevinwlee
Created March 27, 2014 18:07
Show Gist options
  • Save Kevinwlee/9814233 to your computer and use it in GitHub Desktop.
Save Kevinwlee/9814233 to your computer and use it in GitHub Desktop.
- (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken {
CCHNotificationService *sharedService = [CCHNotificationService sharedService];
NSString *deviceID = [ContextHub deviceId];
[sharedService registerDeviceToken:deviceToken withAlias:deviceID withCompletion:^(NSError *error) {
if(error) {
NSLog(@"%@", error);
} else {
NSLog(@"Success :)");
}
}];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment