From e6fbc61c74cc79c2212126afdbe30f0529f1121d Mon Sep 17 00:00:00 2001 From: Mohit kumar Date: Wed, 16 Oct 2019 14:33:34 +0530 Subject: [PATCH 1/4] updated SDWebImage version --- ChatSDK.podspec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ChatSDK.podspec b/ChatSDK.podspec index d3124297..e8d9a496 100755 --- a/ChatSDK.podspec +++ b/ChatSDK.podspec @@ -65,7 +65,7 @@ Pod::Spec.new do |s| ui.dependency 'MBProgressHUD', '~> 1.0' ui.dependency 'VENTokenField', '~> 2.0' - ui.dependency 'SDWebImage', '~> 4.0' + ui.dependency 'SDWebImage', '~> 5.0' ui.dependency 'StaticDataTableViewController', '~> 2.0' ui.dependency 'CountryPicker', '~> 1.0' ui.dependency 'TOCropViewController', '~> 2.0' @@ -141,4 +141,4 @@ Pod::Spec.new do |s| # # end -end \ No newline at end of file +end From 187f8083f9560f7b79448bb632b8fe325b000368 Mon Sep 17 00:00:00 2001 From: Mohit kumar Date: Wed, 16 Oct 2019 14:51:00 +0530 Subject: [PATCH 2/4] Update ChatSDK.podspec --- ChatSDK.podspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ChatSDK.podspec b/ChatSDK.podspec index e8d9a496..d4d00281 100755 --- a/ChatSDK.podspec +++ b/ChatSDK.podspec @@ -65,7 +65,7 @@ Pod::Spec.new do |s| ui.dependency 'MBProgressHUD', '~> 1.0' ui.dependency 'VENTokenField', '~> 2.0' - ui.dependency 'SDWebImage', '~> 5.0' + ui.dependency 'SDWebImage', '~> 4.0' ui.dependency 'StaticDataTableViewController', '~> 2.0' ui.dependency 'CountryPicker', '~> 1.0' ui.dependency 'TOCropViewController', '~> 2.0' From 086abec6afafe908697bb67ee0e258ea8ea2440d Mon Sep 17 00:00:00 2001 From: Mohit Kumar Date: Wed, 13 Nov 2019 15:15:14 +0530 Subject: [PATCH 3/4] 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 37c7acdf..15d75102 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:userInfo]; } } From 48f7cb1c2dfa4b46404d58125178afb299896cb6 Mon Sep 17 00:00:00 2001 From: Mohit Kumar Date: Wed, 13 Nov 2019 16:18:39 +0530 Subject: [PATCH 4/4] fix forground push callback issue --- ChatSDKCore/Classes/Push/BLocalNotificationDelegate.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ChatSDKCore/Classes/Push/BLocalNotificationDelegate.m b/ChatSDKCore/Classes/Push/BLocalNotificationDelegate.m index 15d75102..e1e4a4e6 100755 --- a/ChatSDKCore/Classes/Push/BLocalNotificationDelegate.m +++ b/ChatSDKCore/Classes/Push/BLocalNotificationDelegate.m @@ -19,7 +19,7 @@ - (void)userNotificationCenter:(UNUserNotificationCenter *)center willPresentNot if ([BChatSDK.ui showLocalNotification:notification]) { completionHandler(UNNotificationPresentationOptionBadge | UNNotificationPresentationOptionSound | UNNotificationPresentationOptionAlert); } else { - [BChatSDK application:[UIApplication sharedApplication] didReceiveRemoteNotification:userInfo]; + [BChatSDK application:[UIApplication sharedApplication] didReceiveRemoteNotification:notification.request.content.userInfo]; } }