Skip to content

Instantly share code, notes, and snippets.

@helpshift
Last active December 10, 2015 04:08
Show Gist options
  • Save helpshift/4378689 to your computer and use it in GitHub Desktop.
Save helpshift/4378689 to your computer and use it in GitHub Desktop.
Helpshift iOS UA
- (void) application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken
{
[[Helpshift sharedInstance] registerDeviceToken:deviceToken];
}
- (void) application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo
{
if ([[userInfo objectForKey:@"origin"] isEqualToString:@"helpshift"]) {
[[Helpshift sharedInstance] handleNotification:userInfo withController:self.viewController];
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment