Skip to content

Instantly share code, notes, and snippets.

@mlinderman
Created April 20, 2017 19:31
Show Gist options
  • Save mlinderman/aab4fde88dc5d6eb659ba83b51c20bd3 to your computer and use it in GitHub Desktop.
Save mlinderman/aab4fde88dc5d6eb659ba83b51c20bd3 to your computer and use it in GitHub Desktop.
remote notification hooks for Epi
- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler
{
[[EPILocationMarketingServiceManager sharedInstance] handleRemoteNotification:userInfo fetchCompletionHandler:completionHandler];
}
- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)notification
{
[RCTPushNotificationManager didReceiveRemoteNotification:notification];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment