didReceiveRemoteNotification: fetchCompletionHandler - background
grifas opened this issue · 1 comments
Hi, thanks a lot for this library !
didReceiveRemoteNotification: fetchCompletionHandler is called even if the app is in background when I send a notification from your iOS Simulator Notifications. (on 4s 9.0)
In your documentation, you said:
Note that if you send a notification while the app is in the background, application:didReceiveRemoteNotification:fetchCompletionHandler: will only be called when you bring the app to the foreground.
How to call it only when I bring the app to the foreground ?
Try not implementing application(_:didReceiveRemoteNotification:fetchCompletionHandler)
and implement application(_:didReceiveRemoteNotification:)
instead. See the "Discussion" section of this documentation page https://developer.apple.com/documentation/uikit/uiapplicationdelegate/1623013-application#