Skip to content

Commit

Permalink
skip if in test
Browse files Browse the repository at this point in the history
  • Loading branch information
KennyHuRadar committed Dec 20, 2024
1 parent e84b828 commit 406d523
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions RadarSDK/RadarNotificationHelper.m
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,12 @@ + (void)addOnPremiseNotificationRequests:(NSArray<UNNotificationRequest *> *)req
}

+ (void)getNotificationDiffWithCompletionHandler:(void (^)(NSArray *notificationsDelivered, NSArray *notificationsRemaining))completionHandler {
if (NSClassFromString(@"XCTestCase") != nil) {
if (completionHandler) {
completionHandler(@[], @[]);
}
return;
}
UNUserNotificationCenter *notificationCenter = [UNUserNotificationCenter currentNotificationCenter];
NSArray *registeredNotifications = [RadarState registeredNotifications];

Expand Down

0 comments on commit 406d523

Please sign in to comment.