Skip to content

Commit

Permalink
Update packages/messaging/ios/RNFBMessaging/RNFBMessagingModule.m
Browse files Browse the repository at this point in the history
  • Loading branch information
mikehardy authored Jan 4, 2022
1 parent f445e34 commit 8bb0469
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/messaging/ios/RNFBMessaging/RNFBMessagingModule.m
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ - (NSDictionary *)constantsToExport {
}

if ([permissions[@"providesAppNotificationSettings"] isEqual:@(YES)]) {
if (@available(iOS 12.0, *)) {
if (@available(iOS 12, macOS 10.14, macCatalyst 13, tvOS 12, watchOS 5, *)) {
options |= UNAuthorizationOptionProvidesAppNotificationSettings;
}
}
Expand Down

0 comments on commit 8bb0469

Please sign in to comment.