Skip to content

Commit

Permalink
remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
KennyHuRadar committed Sep 16, 2024
1 parent 63ceea3 commit 11b0af1
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions RadarSDK/RadarNotificationHelper.m
Original file line number Diff line number Diff line change
Expand Up @@ -203,20 +203,6 @@ + (void)addOnPremiseNotificationRequests:(NSArray<UNNotificationRequest *> *)req
}];
}

+ (void)checkNotificationPermissionsWithCompletion:(NotificationPermissionCheckCompletion)completion {
UNUserNotificationCenter *notificationCenter = [UNUserNotificationCenter currentNotificationCenter];
[notificationCenter getNotificationSettingsWithCompletionHandler:^(UNNotificationSettings *settings) {
BOOL granted = (settings.authorizationStatus == UNAuthorizationStatusAuthorized);
[RadarState setNotificationPermissionGranted:granted];
if (!granted) {
[[RadarLogger sharedInstance] logWithLevel:RadarLogLevelDebug message:@"Notification permissions not granted."];
}
if (completion) {
completion(granted);
}
}];
}

+ (void)showDidReceiveSilentPushNotification:(NSDictionary *)payload {
if (!payload) {
return;
Expand Down

0 comments on commit 11b0af1

Please sign in to comment.