From c8e8365b520f8754744b35b83953d7791c83874a Mon Sep 17 00:00:00 2001 From: feruz Date: Thu, 12 Oct 2023 09:21:39 +0300 Subject: [PATCH] change target of notification extention ios --- ios/Ecency.xcodeproj/project.pbxproj | 4 ++-- ios/ImageNotifi/NotificationService.m | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ios/Ecency.xcodeproj/project.pbxproj b/ios/Ecency.xcodeproj/project.pbxproj index 3b474262d..07b4fd952 100644 --- a/ios/Ecency.xcodeproj/project.pbxproj +++ b/ios/Ecency.xcodeproj/project.pbxproj @@ -1261,7 +1261,7 @@ INFOPLIST_FILE = ImageNotifi/Info.plist; INFOPLIST_KEY_CFBundleDisplayName = ImageNotifi; INFOPLIST_KEY_NSHumanReadableCopyright = ""; - IPHONEOS_DEPLOYMENT_TARGET = 16.4; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -1305,7 +1305,7 @@ INFOPLIST_FILE = ImageNotifi/Info.plist; INFOPLIST_KEY_CFBundleDisplayName = ImageNotifi; INFOPLIST_KEY_NSHumanReadableCopyright = ""; - IPHONEOS_DEPLOYMENT_TARGET = 16.4; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", diff --git a/ios/ImageNotifi/NotificationService.m b/ios/ImageNotifi/NotificationService.m index d8ca61c50..f81b8d3c4 100644 --- a/ios/ImageNotifi/NotificationService.m +++ b/ios/ImageNotifi/NotificationService.m @@ -22,6 +22,8 @@ self.bestAttemptContent = [request.content mutableCopy]; // Modify the notification content here... + self.bestAttemptContent.title = [NSString stringWithFormat:@"%@ [modified]", self.bestAttemptContent.title]; + [[FIRMessaging extensionHelper] populateNotificationContent:self.bestAttemptContent withContentHandler:contentHandler]; }