Created
March 27, 2014 18:07
-
-
Save Kevinwlee/9814233 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
- (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