willpresentnotification method not called

Viewed 1101

At first glance, this may look similar to many other questions on stack overflow, but I didn't find the solution for the issue I am facing. I am using xcode 8.3.2 and ios 10.3.2 and configured FCM to send push notifications. I am receiving push notifications in foreground, background and not running states so no problem from firebase end or certificates. I have set the delegate for UNUserNotificationCenter and FIRMessaging as well. I am testing the service by sending notification from firebase console. When I press the notification to launch the app, the method userNotificationCenter didReceive response method is getting called, but when the app is in foreground userNotificationCenter willPresent notification is not getting called when a notification arrives. I have tried enabling and disabling method swizzling as well. didn't help.

0 Answers
Related