Skip to content

Instantly share code, notes, and snippets.

@leoneparise
Created February 22, 2017 18:14
Show Gist options
  • Save leoneparise/cceaf4269429e53767ead9b05976b7d1 to your computer and use it in GitHub Desktop.
Save leoneparise/cceaf4269429e53767ead9b05976b7d1 to your computer and use it in GitHub Desktop.
func application(_ application: UIApplication, didReceiveRemoteNotification userInfo: [AnyHashable : Any],
fetchCompletionHandler completionHandler: @escaping (UIBackgroundFetchResult) -> Void) {
if let notification = notificationFactory(userInfo: userInfo) {
NotificationCenter.default.post(notification)
}
completionHandler(.noData)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment