Skip to content

Commit

Permalink
Upgrade to minimum iOS version 10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
via-guy committed Sep 21, 2023
1 parent 1069559 commit 9582f5c
Show file tree
Hide file tree
Showing 22 changed files with 117 additions and 475 deletions.
4 changes: 2 additions & 2 deletions Leanplum-iOS-Location.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ Pod::Spec.new do |s|
s.license = { :type => 'Commercial', :text => 'See https://www.leanplum.com/tos' }
s.author = { 'Leanplum' => '[email protected]' }
s.social_media_url = 'https://twitter.com/leanplum'
s.platform = :ios, '9.0'
s.platform = :ios, '10.0'
s.requires_arc = true
s.source = { :git => 'https://github.com/Leanplum/Leanplum-iOS-SDK.git', :tag => s.version.to_s}
s.source_files = 'LeanplumSDKLocation/LeanplumSDKLocation/Classes/**/*'
s.frameworks = 'CoreLocation'
s.documentation_url = 'https://docs.leanplum.com/'
s.dependency 'Leanplum-iOS-SDK', "~> 6.0"
s.dependency 'Leanplum-iOS-SDK', "~> 7.0"
s.module_name = 'LeanplumLocation'
s.swift_versions = '5.0'
end
4 changes: 2 additions & 2 deletions Leanplum-iOS-LocationAndBeacons.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ Pod::Spec.new do |s|
s.license = { :type => 'Commercial', :text => 'See https://www.leanplum.com/tos' }
s.author = { 'Leanplum' => '[email protected]' }
s.social_media_url = 'https://twitter.com/leanplum'
s.platform = :ios, '9.0'
s.platform = :ios, '10.0'
s.requires_arc = true
s.source = { :git => 'https://github.com/Leanplum/Leanplum-iOS-SDK.git', :tag => s.version.to_s}
s.source_files = 'LeanplumSDKLocation/LeanplumSDKLocation/Classes/**/*'
s.frameworks = 'CoreLocation'
s.documentation_url = 'https://docs.leanplum.com/'
s.dependency 'Leanplum-iOS-SDK', "~> 6.0"
s.dependency 'Leanplum-iOS-SDK', "~> 7.0"
s.module_name = 'LeanplumLocationAndBeacons'
s.pod_target_xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => 'LP_BEACON=1' }
s.swift_versions = '5.0'
Expand Down
2 changes: 1 addition & 1 deletion Leanplum-iOS-SDK.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Pod::Spec.new do |s|
s.social_media_url = 'https://twitter.com/leanplum'
s.requires_arc = true
s.source = { :git => 'https://github.com/Leanplum/Leanplum-iOS-SDK.git', :tag => s.version.to_s }
s.ios.deployment_target = '9.0'
s.ios.deployment_target = '10.0'
s.frameworks = 'CFNetwork', 'Foundation', 'Security', 'SystemConfiguration', 'UIKit'
s.weak_frameworks = 'AdSupport', 'StoreKit'
s.library = 'sqlite3'
Expand Down
24 changes: 3 additions & 21 deletions LeanplumSDK/LeanplumSDK.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
archiveVersion = 1;
classes = {
};
objectVersion = 51;
objectVersion = 54;
objects = {

/* Begin PBXBuildFile section */
Expand Down Expand Up @@ -482,17 +482,13 @@
6AD9784F2774EDF600A7C6C6 /* NotificationsProxy+Disabled.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6AD9784D2774EDF600A7C6C6 /* NotificationsProxy+Disabled.swift */; };
6AD978512774F08300A7C6C6 /* NotificationsProxy+Swizzling.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6AD978502774F08300A7C6C6 /* NotificationsProxy+Swizzling.swift */; };
6AD978522774F08300A7C6C6 /* NotificationsProxy+Swizzling.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6AD978502774F08300A7C6C6 /* NotificationsProxy+Swizzling.swift */; };
6AD978542774F2F700A7C6C6 /* NotificationsProxy+iOS9.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6AD978532774F2F700A7C6C6 /* NotificationsProxy+iOS9.swift */; };
6AD978552774F2F700A7C6C6 /* NotificationsProxy+iOS9.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6AD978532774F2F700A7C6C6 /* NotificationsProxy+iOS9.swift */; };
6AD978572774F3F000A7C6C6 /* NotificationsProxy+Utilities.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6AD978562774F3F000A7C6C6 /* NotificationsProxy+Utilities.swift */; };
6AD978582774F3F000A7C6C6 /* NotificationsProxy+Utilities.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6AD978562774F3F000A7C6C6 /* NotificationsProxy+Utilities.swift */; };
6ADC90C72807461F00CE42C7 /* Dictionary+ValueKeyPath.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6ADC90C62807461F00CE42C7 /* Dictionary+ValueKeyPath.swift */; };
6ADC90C82807461F00CE42C7 /* Dictionary+ValueKeyPath.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6ADC90C62807461F00CE42C7 /* Dictionary+ValueKeyPath.swift */; };
A0371C8C3E1D6D0AB924FF99 /* libPods-Leanplum-Static.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 897B64EE76852A68ECECB184 /* libPods-Leanplum-Static.a */; };
C90C489D2707299D00E33F1F /* NotificationSettings.swift in Sources */ = {isa = PBXBuildFile; fileRef = C90C489C2707299D00E33F1F /* NotificationSettings.swift */; };
C90C489E2707299D00E33F1F /* NotificationSettings.swift in Sources */ = {isa = PBXBuildFile; fileRef = C90C489C2707299D00E33F1F /* NotificationSettings.swift */; };
C90C48A027072A0200E33F1F /* UIUserNotificationSettings+Transform.swift in Sources */ = {isa = PBXBuildFile; fileRef = C90C489F27072A0200E33F1F /* UIUserNotificationSettings+Transform.swift */; };
C90C48A127072A0200E33F1F /* UIUserNotificationSettings+Transform.swift in Sources */ = {isa = PBXBuildFile; fileRef = C90C489F27072A0200E33F1F /* UIUserNotificationSettings+Transform.swift */; };
C90C48A327072A5200E33F1F /* Data+EncodedString.swift in Sources */ = {isa = PBXBuildFile; fileRef = C90C48A227072A5200E33F1F /* Data+EncodedString.swift */; };
C90C48A427072A5200E33F1F /* Data+EncodedString.swift in Sources */ = {isa = PBXBuildFile; fileRef = C90C48A227072A5200E33F1F /* Data+EncodedString.swift */; };
C90C48A627072AD800E33F1F /* UNNotificationSettings+Transform.swift in Sources */ = {isa = PBXBuildFile; fileRef = C90C48A527072AD800E33F1F /* UNNotificationSettings+Transform.swift */; };
Expand Down Expand Up @@ -826,15 +822,13 @@
6AD978482774BE7500A7C6C6 /* Logging.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Logging.swift; sourceTree = "<group>"; };
6AD9784D2774EDF600A7C6C6 /* NotificationsProxy+Disabled.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "NotificationsProxy+Disabled.swift"; sourceTree = "<group>"; };
6AD978502774F08300A7C6C6 /* NotificationsProxy+Swizzling.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "NotificationsProxy+Swizzling.swift"; sourceTree = "<group>"; };
6AD978532774F2F700A7C6C6 /* NotificationsProxy+iOS9.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "NotificationsProxy+iOS9.swift"; sourceTree = "<group>"; };
6AD978562774F3F000A7C6C6 /* NotificationsProxy+Utilities.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "NotificationsProxy+Utilities.swift"; sourceTree = "<group>"; };
6ADC90C62807461F00CE42C7 /* Dictionary+ValueKeyPath.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Dictionary+ValueKeyPath.swift"; sourceTree = "<group>"; };
6C2FB1913D58B5EF901363C9 /* Pods_Leanplum.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Leanplum.framework; sourceTree = BUILT_PRODUCTS_DIR; };
897B64EE76852A68ECECB184 /* libPods-Leanplum-Static.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Leanplum-Static.a"; sourceTree = BUILT_PRODUCTS_DIR; };
B335B24E5DF5CE017C0BE58D /* Pods-Leanplum-Static.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Leanplum-Static.release.xcconfig"; path = "Target Support Files/Pods-Leanplum-Static/Pods-Leanplum-Static.release.xcconfig"; sourceTree = "<group>"; };
C73AA976764CAC7D649E137B /* Pods-Leanplum.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Leanplum.debug.xcconfig"; path = "Target Support Files/Pods-Leanplum/Pods-Leanplum.debug.xcconfig"; sourceTree = "<group>"; };
C90C489C2707299D00E33F1F /* NotificationSettings.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NotificationSettings.swift; sourceTree = "<group>"; };
C90C489F27072A0200E33F1F /* UIUserNotificationSettings+Transform.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "UIUserNotificationSettings+Transform.swift"; sourceTree = "<group>"; };
C90C48A227072A5200E33F1F /* Data+EncodedString.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Data+EncodedString.swift"; sourceTree = "<group>"; };
C90C48A527072AD800E33F1F /* UNNotificationSettings+Transform.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "UNNotificationSettings+Transform.swift"; sourceTree = "<group>"; };
C9374A38272C36B200F4915A /* Utilities.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Utilities.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -1382,7 +1376,6 @@
6A265E2527187EBB0074354F /* NotificationsProxy.swift */,
6AD9784D2774EDF600A7C6C6 /* NotificationsProxy+Disabled.swift */,
6AD978502774F08300A7C6C6 /* NotificationsProxy+Swizzling.swift */,
6AD978532774F2F700A7C6C6 /* NotificationsProxy+iOS9.swift */,
6AD978562774F3F000A7C6C6 /* NotificationsProxy+Utilities.swift */,
);
path = Proxy;
Expand Down Expand Up @@ -1416,7 +1409,6 @@
isa = PBXGroup;
children = (
C90C48A227072A5200E33F1F /* Data+EncodedString.swift */,
C90C489F27072A0200E33F1F /* UIUserNotificationSettings+Transform.swift */,
C90C48A527072AD800E33F1F /* UNNotificationSettings+Transform.swift */,
C9D064DB2775DB1100A7A5F9 /* Dictionary+Equatable.swift */,
39D0AA1327760842003C7192 /* Bundle+Extensions.swift */,
Expand Down Expand Up @@ -1868,7 +1860,6 @@
075AAE2A26847EC4007CA1BD /* LPRegisterDevice.m in Sources */,
075AAE7C26847EC4007CA1BD /* LPAES.m in Sources */,
6A2109E328BE88D900DBF4A9 /* MigrationManager.swift in Sources */,
C90C48A027072A0200E33F1F /* UIUserNotificationSettings+Transform.swift in Sources */,
075AAE4326847EC4007CA1BD /* LPInterstitialMessageTemplate.m in Sources */,
075AAE2E26847EC4007CA1BD /* LPCountAggregator.m in Sources */,
075AAE5A26847EC4007CA1BD /* LPAppRatingMessageTemplate.m in Sources */,
Expand Down Expand Up @@ -1914,7 +1905,6 @@
39C081A12781D3E900C1DBD6 /* ActionManager+Executor.swift in Sources */,
6A07FDA22811911000995BE3 /* ActionManager+FileDownload.swift in Sources */,
075AAE8126847EC4007CA1BD /* LPSwizzle.m in Sources */,
6AD978542774F2F700A7C6C6 /* NotificationsProxy+iOS9.swift in Sources */,
6A2E4C22292BAB3400385536 /* CleverTapInstanceCallback.m in Sources */,
075AAE6A26847EC4007CA1BD /* LPLocalNotificationsManager.m in Sources */,
C9D064DC2775DB1100A7A5F9 /* Dictionary+Equatable.swift in Sources */,
Expand Down Expand Up @@ -2003,7 +1993,6 @@
6A714B7526F8B317004A34A9 /* LPContextualValues.m in Sources */,
6A714B7626F8B317004A34A9 /* LPRegisterDevice.m in Sources */,
6A714B7726F8B317004A34A9 /* LPAES.m in Sources */,
C90C48A127072A0200E33F1F /* UIUserNotificationSettings+Transform.swift in Sources */,
6A714B7826F8B317004A34A9 /* LPInterstitialMessageTemplate.m in Sources */,
6A714B7926F8B317004A34A9 /* LPCountAggregator.m in Sources */,
6A714B7A26F8B317004A34A9 /* LPAppRatingMessageTemplate.m in Sources */,
Expand Down Expand Up @@ -2044,7 +2033,6 @@
6A714B9026F8B317004A34A9 /* NSString+MD5Addition.m in Sources */,
6A07FDA32811911000995BE3 /* ActionManager+FileDownload.swift in Sources */,
6A714B9126F8B317004A34A9 /* LPSwizzle.m in Sources */,
6AD978552774F2F700A7C6C6 /* NotificationsProxy+iOS9.swift in Sources */,
6A2E4C23292BAB3400385536 /* CleverTapInstanceCallback.m in Sources */,
6A714B9226F8B317004A34A9 /* LPLocalNotificationsManager.m in Sources */,
C9D064DD2775DB1100A7A5F9 /* Dictionary+Equatable.swift in Sources */,
Expand Down Expand Up @@ -2131,7 +2119,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
Expand Down Expand Up @@ -2187,7 +2175,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
SDKROOT = iphoneos;
Expand All @@ -2212,7 +2200,6 @@
DYLIB_INSTALL_NAME_BASE = "@rpath";
INFOPLIST_FILE = "LeanplumSDK/Supporting Files/Info.plist";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand Down Expand Up @@ -2246,7 +2233,6 @@
DYLIB_INSTALL_NAME_BASE = "@rpath";
INFOPLIST_FILE = "LeanplumSDK/Supporting Files/Info.plist";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand Down Expand Up @@ -2274,7 +2260,6 @@
ENABLE_BITCODE = NO;
INFOPLIST_FILE = "LeanplumSDKBundle/Supporting Files/Info.plist";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Bundles";
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
MACOSX_DEPLOYMENT_TARGET = 11.3;
PRODUCT_BUNDLE_IDENTIFIER = "com.leanplum.LeanplumSDK-Bundle";
PRODUCT_NAME = "Leanplum-iOS-SDK";
Expand All @@ -2297,7 +2282,6 @@
ENABLE_BITCODE = NO;
INFOPLIST_FILE = "LeanplumSDKBundle/Supporting Files/Info.plist";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Bundles";
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
MACOSX_DEPLOYMENT_TARGET = 11.3;
PRODUCT_BUNDLE_IDENTIFIER = "com.leanplum.LeanplumSDK-Bundle";
PRODUCT_NAME = "Leanplum-iOS-SDK";
Expand Down Expand Up @@ -2325,7 +2309,6 @@
DYLIB_INSTALL_NAME_BASE = "@rpath";
INFOPLIST_FILE = "LeanplumSDK/Supporting Files/Info.plist";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand Down Expand Up @@ -2359,7 +2342,6 @@
DYLIB_INSTALL_NAME_BASE = "@rpath";
INFOPLIST_FILE = "LeanplumSDK/Supporting Files/Info.plist";
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand Down
41 changes: 0 additions & 41 deletions LeanplumSDK/LeanplumSDK/Classes/Internal/Leanplum.m
Original file line number Diff line number Diff line change
Expand Up @@ -1557,47 +1557,6 @@ + (void)willPresentNotification:(UNNotification *)notification
LP_END_TRY
}

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
#pragma clang diagnostic ignored "-Wstrict-prototypes"
+ (void)didRegisterUserNotificationSettings:(UIUserNotificationSettings *)notificationSettings
{
LP_TRY
if (![LPUtils isSwizzlingEnabled])
{
[[Leanplum notificationsManager] didRegisterUserNotificationSettings:notificationSettings];
}
else
{
LPLog(LPDebug, @"Call to didRegisterUserNotificationSettings will be ignored due to swizzling.");
}
LP_END_TRY
}

+ (void)didReceiveLocalNotification:(UILocalNotification *)localNotification
{
LP_TRY
if (![LPUtils isSwizzlingEnabled])
{
[[Leanplum notificationsManager].proxy applicationWithDidReceive:localNotification];
}
else
{
LPLog(LPDebug, @"Call to didReceiveLocalNotification will be ignored due to swizzling");
}
LP_END_TRY
}

+ (void)handleActionWithIdentifier:(NSString *)identifier
forLocalNotification:(UILocalNotification *)notification
completionHandler:(void (^)(UIBackgroundFetchResult))completionHandler
{
LP_TRY
[[Leanplum notificationsManager].proxy handleActionWithIdentifier:identifier forLocalNotification:notification];
LP_END_TRY
}
#pragma clang diagnostic pop

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wstrict-prototypes"
+ (void)handleActionWithIdentifier:(NSString *)identifier
Expand Down
35 changes: 6 additions & 29 deletions LeanplumSDK/LeanplumSDK/Classes/Leanplum.h
Original file line number Diff line number Diff line change
Expand Up @@ -384,11 +384,6 @@ NS_SWIFT_NAME(defineAction(name:kind:args:options:present:dismiss:));
+ (void)applicationDidFinishLaunchingWithOptions:(NSDictionary<UIApplicationLaunchOptionsKey, id> *)launchOptions;
+ (void)didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)token;
+ (void)didFailToRegisterForRemoteNotificationsWithError:(NSError *)error;
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
#pragma clang diagnostic ignored "-Wstrict-prototypes"
+ (void)didRegisterUserNotificationSettings:(UIUserNotificationSettings *)notificationSettings;
#pragma clang diagnostic pop
/**
* Call this method from application:didReceiveRemoteNotification:fetchCompletionHandler when Swizzling is Disabled.
* Call the completionHandler yourself.
Expand All @@ -398,40 +393,22 @@ NS_SWIFT_NAME(defineAction(name:kind:args:options:present:dismiss:));
* Call this method from userNotificationCenter:didReceive:withCompletionHandler when Swizzling is Disabled.
* Call the completionHandler yourself.
*/
+ (void)didReceiveNotificationResponse:(UNNotificationResponse *)response API_AVAILABLE(ios(10.0));
/**
* Call this method from userNotificationCenter:willPresent:withCompletionHandler when Swizzling is Disabled.
* Call the completionHandler yourself.
*/
+ (void)willPresentNotification:(UNNotification *)notification API_AVAILABLE(ios(10.0));
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
#pragma clang diagnostic ignored "-Wstrict-prototypes"
+ (void)didReceiveLocalNotification:(UILocalNotification *)localNotification;
#pragma clang diagnostic pop

+ (void)didReceiveNotificationResponse:(UNNotificationResponse *)response;
/**
* Call this to handle custom actions for local notifications.
* Call this to handle custom actions for remote notifications.
* Call the completionHandler yourself.
*/
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
#pragma clang diagnostic ignored "-Wstrict-prototypes"
+ (void)handleActionWithIdentifier:(NSString *)identifier
forLocalNotification:(UILocalNotification *)notification
forRemoteNotification:(NSDictionary *)notification
completionHandler:(void (^)(UIBackgroundFetchResult))completionHandler;
#pragma clang diagnostic pop

/**
* Call this to handle custom actions for remote notifications.
* Call this method from userNotificationCenter:willPresent:withCompletionHandler when Swizzling is Disabled.
* Call the completionHandler yourself.
*/
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wstrict-prototypes"
+ (void)handleActionWithIdentifier:(NSString *)identifier
forRemoteNotification:(NSDictionary *)notification
completionHandler:(void (^)(UIBackgroundFetchResult))completionHandler;
#pragma clang diagnostic pop
+ (void)willPresentNotification:(UNNotification *)notification;

/**
* Block to call that decides whether a notification should be displayed when it is
Expand Down Expand Up @@ -463,7 +440,7 @@ NS_SWIFT_NAME(defineAction(name:kind:args:options:present:dismiss:));
*/
+ (void)setPushDeliveryTrackingEnabled:(BOOL)enabled;

+ (void)setPushNotificationPresentationOption:(UNNotificationPresentationOptions)options API_AVAILABLE(ios(10.0));
+ (void)setPushNotificationPresentationOption:(UNNotificationPresentationOptions)options;

/**
* @{
Expand Down
Loading

0 comments on commit 9582f5c

Please sign in to comment.