1// Copyright 2018-present 650 Industries. All rights reserved. 2 3#import "EXScopedNotificationsUtils.h" 4 5@implementation EXScopedNotificationsUtils 6 7+ (BOOL)shouldNotificationRequest:(UNNotificationRequest *)request beHandledByExperience:(NSString *)experienceId 8{ 9 NSString *notificationExperienceId = request.content.userInfo[@"experienceId"]; 10 if (!notificationExperienceId) { 11 return true; 12 } 13 return [notificationExperienceId isEqual:experienceId]; 14} 15 16+ (BOOL)shouldNotification:(UNNotification *)notification beHandledByExperience:(NSString *)experienceId 17{ 18 return [EXScopedNotificationsUtils shouldNotificationRequest:notification.request beHandledByExperience:experienceId]; 19} 20 21@end 22