diff --git a/ios/RNFIRMessaging.m b/ios/RNFIRMessaging.m index 507b975eacaead3c045099c8157b65d5b3016059..524dbfb1191549ab63a7dc84225c0e19f496ec0e 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];