diff --git a/ChatSDK.podspec b/ChatSDK.podspec index a9a2f820..90829b43 100755 --- a/ChatSDK.podspec +++ b/ChatSDK.podspec @@ -142,4 +142,4 @@ Pod::Spec.new do |s| # # end -end \ No newline at end of file +end diff --git a/ChatSDKCore/Classes/Defines/BKeys.h b/ChatSDKCore/Classes/Defines/BKeys.h index a6a5f9ef..7738c3c7 100755 --- a/ChatSDKCore/Classes/Defines/BKeys.h +++ b/ChatSDKCore/Classes/Defines/BKeys.h @@ -31,11 +31,10 @@ #define bDate @"date" #define bUserFirebaseID @"user-firebase-id" #define bFrom @"from" -#define bTo @"to" +//#define bTo @"to" #define bMute @"mute" #define bUnmute @"unmute" - // Deprecated in favour of bCreator #define bCreatorEntityID @"creator-entity-id" #define bCreator @"creator" diff --git a/ChatSDKCore/Classes/Push/BLocalNotificationDelegate.m b/ChatSDKCore/Classes/Push/BLocalNotificationDelegate.m index 19781e41..ca489919 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:userInfo]; } }