From 15dc4489823710637b83a5e316176a1b9477e287 Mon Sep 17 00:00:00 2001 From: Libin Lu Date: Mon, 12 Feb 2018 09:54:06 -0500 Subject: [PATCH] backward compatibility with xcode 8 --- ios/RNFIRMessaging.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ios/RNFIRMessaging.m b/ios/RNFIRMessaging.m index 507b975..524dbfb 100644 --- a/ios/RNFIRMessaging.m +++ b/ios/RNFIRMessaging.m @@ -193,9 +193,9 @@ RCT_MULTI_ENUM_CONVERTER(UNNotificationActionOptions, (@{ UNNotificationCategoryOptions options = [RCTConvert UNNotificationCategoryOptions: details[@"options"]]; if (hiddenPreviewsBodyPlaceholder) { - if (@available(iOS 11.0, *)) { +#if defined(__IPHONE_11_0) && __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_11_0 return [UNNotificationCategory categoryWithIdentifier:identifier actions:actions intentIdentifiers:intentIdentifiers hiddenPreviewsBodyPlaceholder:hiddenPreviewsBodyPlaceholder options:options]; - } +#endif } return [UNNotificationCategory categoryWithIdentifier:identifier actions:actions intentIdentifiers:intentIdentifiers options:options]; -- 2.26.2