Skip to content

Commit

Permalink
feat(messaging, ios): Adjust formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
StanleyCocos committed Nov 21, 2024
1 parent b119f20 commit f66218e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@ - (void)messagingRequestPermission:(id)arguments
options |= UNAuthorizationOptionCriticalAlert;
}
}

if ([permissions[@"providesAppNotificationSettings"] isEqual:@(YES)]) {
if (@available(iOS 12.0, *)) {
options |= UNAuthorizationOptionProvidesAppNotificationSettings;
Expand Down Expand Up @@ -785,7 +785,7 @@ + (NSDictionary *)NSDictionaryFromUNNotificationSettings:(UNNotificationSettings
settingsDictionary[@"notificationCenter"] = [FLTFirebaseMessagingPlugin
NSNumberForUNNotificationSetting:settings.notificationCenterSetting];
settingsDictionary[@"timeSensitive"] = timeSensitive;

if (@available(iOS 12.0, *)) {
if (settings.providesAppNotificationSettings) {
settingsDictionary[@"providesAppNotificationSettings"] = @1;
Expand Down

0 comments on commit f66218e

Please sign in to comment.