Skip to content

Instantly share code, notes, and snippets.

@imosquera
Created January 5, 2012 19:10
Show Gist options
  • Save imosquera/1566706 to your computer and use it in GitHub Desktop.
Save imosquera/1566706 to your computer and use it in GitHub Desktop.
smart notifications
- (void)application:(UIApplication*)application didRegisterForRemoteNotificationsWithDeviceToken:deviceToken
{
[Socialize registerDeviceToken:deviceToken];
}
- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo {
if ([Socialize handleNotification:userInfo]) {
return;
}
// Nonsocialize notification handling goes here
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment