From 816b09e970a002187176adea62d48ae3ca018ca4 Mon Sep 17 00:00:00 2001 From: David Stoker Date: Wed, 15 Nov 2017 22:12:20 -0500 Subject: [PATCH] Revert "Add iOS version checks to prevent crashes on iOS 8" This reverts commit 9a47c853cebe517dd422b77025ebd9bf60cccc06. --- RNNotifications/RNNotifications.m | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/RNNotifications/RNNotifications.m b/RNNotifications/RNNotifications.m index 8c3a0aa..e82cdf0 100644 --- a/RNNotifications/RNNotifications.m +++ b/RNNotifications/RNNotifications.m @@ -62,9 +62,7 @@ RCT_ENUM_CONVERTER(UIUserNotificationActionBehavior, (@{ UIMutableUserNotificationAction* action =[UIMutableUserNotificationAction new]; action.activationMode = [RCTConvert UIUserNotificationActivationMode:details[@"activationMode"]]; - if (SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"9.0")) { - action.behavior = [RCTConvert UIUserNotificationActionBehavior:details[@"behavior"]]; - } + action.behavior = [RCTConvert UIUserNotificationActionBehavior:details[@"behavior"]]; action.authenticationRequired = [RCTConvert BOOL:details[@"authenticationRequired"]]; action.destructive = [RCTConvert BOOL:details[@"destructive"]]; action.title = [RCTConvert NSString:details[@"title"]]; @@ -102,9 +100,7 @@ RCT_ENUM_CONVERTER(UIUserNotificationActionBehavior, (@{ UILocalNotification* notification = [UILocalNotification new]; notification.fireDate = [RCTConvert NSDate:details[@"fireDate"]]; notification.alertBody = [RCTConvert NSString:details[@"alertBody"]]; - if (SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"8.2")) { - notification.alertTitle = [RCTConvert NSString:details[@"alertTitle"]]; - } + notification.alertTitle = [RCTConvert NSString:details[@"alertTitle"]]; notification.alertAction = [RCTConvert NSString:details[@"alertAction"]]; notification.soundName = [RCTConvert NSString:details[@"soundName"]] ?: UILocalNotificationDefaultSoundName; if ([RCTConvert BOOL:details[@"silent"]]) { -- 2.26.2