0

I have an app that receives push notification but I have a doubt:

when app is in foreground and comes a remote notification I handle it but this method in AppDelegate:

func application(_ application: UIApplication, didReceiveRemoteNotification userInfo: [AnyHashable : Any], fetchCompletionHandler completionHandler: @escaping (UIBackgroundFetchResult) -> Void) 

but I don't understand how do I have to handle the remote notification when comes a remote notification when app is in background and the user tap on rectangle of notification and then app opens.

alexander
  • 149
  • 1
  • 2
  • 14
  • se this once http://stackoverflow.com/questions/39382852/didreceiveremotenotification-not-called-ios-10/39383027#39383027 – Anbu.Karthik Nov 08 '16 at 06:21
  • try this answer for swift 3.0 push notification http://stackoverflow.com/questions/37956482/registering-for-push-notifications-in-xcode-8-swift-3-0 – Gunja Patel Nov 08 '16 at 06:26

0 Answers0