Hello,
I have a very strange synptom like described in the title.
My app is using push notification and it works fine when I run the app from Xcode RUN.
Now, I use my iPhone and tap the app to launch it and let it go to background.
While the app is in background and the app received push notification, the bannar is shown on the iPhone display. I tap the banner then app is launched, but the following function is not called.
func application(_ application: UIApplication, didReceiveRemoteNotification userInfo: [AnyHashable : Any], fetchCompletionHandler completionHandler: @escaping (UIBackgroundFetchResult) -> Void)
I have no idea why this happens.
Does anyone have any solution?
Additional information.
When I use Xcode to RUN the app and the app received push notification in Background, that function is called in Background.
When I tap the app and and the app received push notification in Background, that function is called in Active but not called in Backgroiund.
Why?