diff --git a/ChatSDK.podspec b/ChatSDK.podspec index d3124297..d4d00281 100755 --- a/ChatSDK.podspec +++ b/ChatSDK.podspec @@ -141,4 +141,4 @@ Pod::Spec.new do |s| # # end -end \ No newline at end of file +end diff --git a/ChatSDKCore/Classes/Push/BLocalNotificationDelegate.m b/ChatSDKCore/Classes/Push/BLocalNotificationDelegate.m index 37c7acdf..e1e4a4e6 100755 --- a/ChatSDKCore/Classes/Push/BLocalNotificationDelegate.m +++ b/ChatSDKCore/Classes/Push/BLocalNotificationDelegate.m @@ -18,6 +18,8 @@ @implementation BLocalNotificationDelegate - (void)userNotificationCenter:(UNUserNotificationCenter *)center willPresentNotification:(UNNotification *)notification withCompletionHandler:(void (^)(UNNotificationPresentationOptions options))completionHandler { if ([BChatSDK.ui showLocalNotification:notification]) { completionHandler(UNNotificationPresentationOptionBadge | UNNotificationPresentationOptionSound | UNNotificationPresentationOptionAlert); + } else { + [BChatSDK application:[UIApplication sharedApplication] didReceiveRemoteNotification:notification.request.content.userInfo]; } }