From 1ca39642ead08edbeb912d767b18aa46969ad596 Mon Sep 17 00:00:00 2001 From: Manas Bajpai Date: Mon, 16 Mar 2020 12:19:26 +0530 Subject: [PATCH] Call didReceiveRemoteNotification in case when app is in forground --- ChatSDKCore/Classes/Push/BLocalNotificationDelegate.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ChatSDKCore/Classes/Push/BLocalNotificationDelegate.m b/ChatSDKCore/Classes/Push/BLocalNotificationDelegate.m index 19781e41..97433ee1 100755 --- a/ChatSDKCore/Classes/Push/BLocalNotificationDelegate.m +++ b/ChatSDKCore/Classes/Push/BLocalNotificationDelegate.m @@ -38,6 +38,8 @@ - (void)userNotificationCenter:(UNUserNotificationCenter *)center willPresentNot if (showLocalNotification) { completionHandler(UNNotificationPresentationOptionBadge | UNNotificationPresentationOptionSound | UNNotificationPresentationOptionAlert); + } else { + [BChatSDK application:[UIApplication sharedApplication] didReceiveRemoteNotification:notification.request.content.userInfo]; } }