{"abstract":[{"text":"The score the system uses to determine if the notification is the summary’s featured notification.","type":"text"}],"hierarchy":{"paths":[["doc:\/\/com.apple.documentation\/documentation\/technologies","doc:\/\/com.apple.usernotifications\/documentation\/UserNotifications","doc:\/\/com.apple.usernotifications\/documentation\/UserNotifications\/UNNotificationContent"]]},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/com.apple.usernotifications\/documentation\/UserNotifications\/UNNotificationContent\/relevanceScore"},"kind":"symbol","legalNotices":{"copyright":"Copyright &copy; 2026 Apple Inc. All rights reserved.","privacyPolicy":"https:\/\/www.apple.com\/privacy\/privacy-policy","termsOfUse":"https:\/\/www.apple.com\/legal\/internet-services\/terms\/site.html"},"metadata":{"availableLanguages":["de-DE","en-US","es-419","fr-FR","it-IT","ja-JP","ko-KR","pt-BR","zh-CN"],"externalID":"c:objc(cs)UNNotificationContent(py)relevanceScore","fragments":[{"kind":"keyword","text":"var"},{"kind":"text","text":" "},{"kind":"identifier","text":"relevanceScore"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:Sd","text":"Double"}],"modules":[{"name":"User Notifications"}],"navigatorTitle":[{"kind":"identifier","text":"relevanceScore"}],"platforms":[{"introducedAt":"15.0","name":"iOS"},{"introducedAt":"15.0","name":"iPadOS"},{"introducedAt":"15.0","name":"Mac Catalyst"},{"introducedAt":"12.0","name":"macOS"},{"introducedAt":"15.0","name":"tvOS"},{"introducedAt":"1.0","name":"visionOS"},{"introducedAt":"8.0","name":"watchOS"}],"role":"symbol","roleHeading":"Instance Property","symbolKind":"property","title":"relevanceScore"},"primaryContentSections":[{"declarations":[{"languages":["swift"],"platforms":["iOS","iPadOS","Mac Catalyst","macOS","tvOS","visionOS","watchOS"],"tokens":[{"kind":"keyword","text":"var"},{"kind":"text","text":" "},{"kind":"identifier","text":"relevanceScore"},{"kind":"text","text":": "},{"identifier":"doc:\/\/com.apple.documentation\/documentation\/Swift\/Double","kind":"typeIdentifier","preciseIdentifier":"s:Sd","text":"Double"},{"kind":"text","text":" { "},{"kind":"keyword","text":"get"},{"kind":"text","text":" }"}]}],"kind":"declarations"},{"kind":"mentions","mentions":["doc:\/\/com.apple.usernotifications\/documentation\/UserNotifications\/generating-a-remote-notification"]},{"content":[{"anchor":"Discussion","level":2,"text":"Discussion","type":"heading"},{"inlineContent":[{"text":"The system uses the ","type":"text"},{"code":"relevanceScore","type":"codeVoice"},{"text":", a value between ","type":"text"},{"code":"0","type":"codeVoice"},{"text":" and ","type":"text"},{"code":"1","type":"codeVoice"},{"text":", to sort the notifications from your app. The highest score gets featured in the notification summary.","type":"text"}],"type":"paragraph"}],"kind":"content"}],"schemaVersion":{"major":0,"minor":3,"patch":0},"sections":[],"seeAlsoSections":[{"anchor":"Reading-system-configuration","generated":true,"identifiers":["doc:\/\/com.apple.usernotifications\/documentation\/UserNotifications\/UNNotificationContent\/sound","doc:\/\/com.apple.usernotifications\/documentation\/UserNotifications\/UNNotificationContent\/interruptionLevel","doc:\/\/com.apple.usernotifications\/documentation\/UserNotifications\/UNNotificationInterruptionLevel","doc:\/\/com.apple.usernotifications\/documentation\/UserNotifications\/UNNotificationContent\/filterCriteria"],"title":"Reading system configuration"}],"variants":[{"paths":["\/documentation\/usernotifications\/unnotificationcontent\/relevancescore"],"traits":[{"interfaceLanguage":"swift"}]},{"paths":["\/documentation\/usernotifications\/unnotificationcontent\/relevancescore"],"traits":[{"interfaceLanguage":"occ"}]}],"references":{"UserNotifications-PageImage-card.png":{"alt":"[A notification interface displayed on the lock screen of an iOS device.]","identifier":"UserNotifications-PageImage-card.png","type":"image","variants":[{"traits":["2x","light"],"url":"\/images\/com.apple.usernotifications\/UserNotifications-PageImage-card@2x.png"},{"traits":["2x","dark"],"url":"\/images\/com.apple.usernotifications\/UserNotifications-PageImage-card~dark@2x.png"}]},"doc://com.apple.documentation/documentation/Swift/Double":{"abstract":[{"text":"A double-precision (64-bit), floating-point value type.","type":"text"}],"fragments":[{"kind":"keyword","text":"struct"},{"kind":"text","text":" "},{"kind":"identifier","text":"Double"}],"identifier":"doc:\/\/com.apple.documentation\/documentation\/Swift\/Double","kind":"symbol","navigatorTitle":[{"kind":"identifier","text":"Double"}],"role":"symbol","title":"Double","type":"topic","url":"\/documentation\/swift\/double"},"doc://com.apple.documentation/documentation/technologies":{"abstract":[],"identifier":"doc:\/\/com.apple.documentation\/documentation\/technologies","kind":"technologies","role":"overview","title":"Technologies","type":"topic","url":"\/documentation\/technologies"},"doc://com.apple.usernotifications/documentation/UserNotifications":{"abstract":[{"text":"Push user-facing notifications to the user’s device from a server, or generate them locally from your app.","type":"text"}],"identifier":"doc:\/\/com.apple.usernotifications\/documentation\/UserNotifications","images":[{"identifier":"UserNotifications-PageImage-card.png","type":"card"}],"kind":"symbol","navigatorTitle":[{"kind":"text","text":"User Notifications"}],"role":"collection","title":"User Notifications","type":"topic","url":"\/documentation\/usernotifications"},"doc://com.apple.usernotifications/documentation/UserNotifications/UNNotificationContent":{"abstract":[{"text":"The uneditable content of a notification.","type":"text"}],"fragments":[{"kind":"keyword","text":"class"},{"kind":"text","text":" "},{"kind":"identifier","text":"UNNotificationContent"}],"identifier":"doc:\/\/com.apple.usernotifications\/documentation\/UserNotifications\/UNNotificationContent","kind":"symbol","navigatorTitle":[{"kind":"identifier","text":"UNNotificationContent"}],"role":"symbol","title":"UNNotificationContent","type":"topic","url":"\/documentation\/usernotifications\/unnotificationcontent"},"doc://com.apple.usernotifications/documentation/UserNotifications/UNNotificationContent/filterCriteria":{"abstract":[{"text":"The criteria the system evaluates to determine if it displays the notification in the current Focus.","type":"text"}],"fragments":[{"kind":"keyword","text":"var"},{"kind":"text","text":" "},{"kind":"identifier","text":"filterCriteria"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"},{"kind":"text","text":"?"}],"identifier":"doc:\/\/com.apple.usernotifications\/documentation\/UserNotifications\/UNNotificationContent\/filterCriteria","kind":"symbol","navigatorTitle":[{"kind":"identifier","text":"filterCriteria"}],"role":"symbol","title":"filterCriteria","type":"topic","url":"\/documentation\/usernotifications\/unnotificationcontent\/filtercriteria"},"doc://com.apple.usernotifications/documentation/UserNotifications/UNNotificationContent/interruptionLevel":{"abstract":[{"text":"The notification’s importance and required delivery timing.","type":"text"}],"fragments":[{"kind":"keyword","text":"var"},{"kind":"text","text":" "},{"kind":"identifier","text":"interruptionLevel"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"c:@E@UNNotificationInterruptionLevel","text":"UNNotificationInterruptionLevel"}],"identifier":"doc:\/\/com.apple.usernotifications\/documentation\/UserNotifications\/UNNotificationContent\/interruptionLevel","kind":"symbol","navigatorTitle":[{"kind":"identifier","text":"interruptionLevel"}],"role":"symbol","title":"interruptionLevel","type":"topic","url":"\/documentation\/usernotifications\/unnotificationcontent\/interruptionlevel"},"doc://com.apple.usernotifications/documentation/UserNotifications/UNNotificationContent/relevanceScore":{"abstract":[{"text":"The score the system uses to determine if the notification is the summary’s featured notification.","type":"text"}],"fragments":[{"kind":"keyword","text":"var"},{"kind":"text","text":" "},{"kind":"identifier","text":"relevanceScore"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:Sd","text":"Double"}],"identifier":"doc:\/\/com.apple.usernotifications\/documentation\/UserNotifications\/UNNotificationContent\/relevanceScore","kind":"symbol","navigatorTitle":[{"kind":"identifier","text":"relevanceScore"}],"role":"symbol","title":"relevanceScore","type":"topic","url":"\/documentation\/usernotifications\/unnotificationcontent\/relevancescore"},"doc://com.apple.usernotifications/documentation/UserNotifications/UNNotificationContent/sound":{"abstract":[{"text":"The sound that plays when the system delivers the notification.","type":"text"}],"fragments":[{"kind":"keyword","text":"var"},{"kind":"text","text":" "},{"kind":"identifier","text":"sound"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"c:objc(cs)UNNotificationSound","text":"UNNotificationSound"},{"kind":"text","text":"?"}],"identifier":"doc:\/\/com.apple.usernotifications\/documentation\/UserNotifications\/UNNotificationContent\/sound","kind":"symbol","navigatorTitle":[{"kind":"identifier","text":"sound"}],"role":"symbol","title":"sound","type":"topic","url":"\/documentation\/usernotifications\/unnotificationcontent\/sound"},"doc://com.apple.usernotifications/documentation/UserNotifications/UNNotificationInterruptionLevel":{"abstract":[{"text":"Constants that indicate the importance and delivery timing of a notification.","type":"text"}],"fragments":[{"kind":"keyword","text":"enum"},{"kind":"text","text":" "},{"kind":"identifier","text":"UNNotificationInterruptionLevel"}],"identifier":"doc:\/\/com.apple.usernotifications\/documentation\/UserNotifications\/UNNotificationInterruptionLevel","kind":"symbol","navigatorTitle":[{"kind":"identifier","text":"UNNotificationInterruptionLevel"}],"role":"symbol","title":"UNNotificationInterruptionLevel","type":"topic","url":"\/documentation\/usernotifications\/unnotificationinterruptionlevel"},"doc://com.apple.usernotifications/documentation/UserNotifications/generating-a-remote-notification":{"abstract":[{"text":"Send notifications to the user’s device with a JSON payload.","type":"text"}],"identifier":"doc:\/\/com.apple.usernotifications\/documentation\/UserNotifications\/generating-a-remote-notification","kind":"article","role":"article","title":"Generating a remote notification","type":"topic","url":"\/documentation\/usernotifications\/generating-a-remote-notification"}},"variantOverrides":[{"patch":[{"op":"replace","path":"\/identifier\/interfaceLanguage","value":"occ"},{"op":"replace","path":"\/metadata\/platforms","value":[{"introducedAt":"15.0","name":"iOS"},{"introducedAt":"15.0","name":"iPadOS"},{"introducedAt":"15.0","name":"Mac Catalyst"},{"introducedAt":"12.0","name":"macOS"},{"introducedAt":"15.0","name":"tvOS"},{"introducedAt":"1.0","name":"visionOS"},{"introducedAt":"8.0","name":"watchOS"}]},{"op":"replace","path":"\/metadata\/roleHeading","value":"Instance Property"},{"op":"replace","path":"\/metadata\/title","value":"relevanceScore"},{"op":"replace","path":"\/metadata\/symbolKind","value":"property"},{"op":"replace","path":"\/metadata\/fragments","value":[{"kind":"identifier","text":"relevanceScore"}]},{"op":"replace","path":"\/hierarchy","value":{"paths":[["doc:\/\/com.apple.documentation\/documentation\/technologies","doc:\/\/com.apple.usernotifications\/documentation\/UserNotifications","doc:\/\/com.apple.usernotifications\/documentation\/UserNotifications\/UNNotificationContent"]]}},{"op":"add","path":"\/topicSections","value":null},{"op":"add","path":"\/relationshipsSections","value":null},{"op":"replace","path":"\/seeAlsoSections","value":[{"anchor":"Reading-system-configuration","generated":true,"identifiers":["doc:\/\/com.apple.usernotifications\/documentation\/UserNotifications\/UNNotificationContent\/sound","doc:\/\/com.apple.usernotifications\/documentation\/UserNotifications\/UNNotificationContent\/interruptionLevel","doc:\/\/com.apple.usernotifications\/documentation\/UserNotifications\/UNNotificationInterruptionLevel","doc:\/\/com.apple.usernotifications\/documentation\/UserNotifications\/UNNotificationContent\/filterCriteria"],"title":"Reading system configuration"}]},{"op":"replace","path":"\/primaryContentSections\/0","value":{"declarations":[{"languages":["occ"],"platforms":["iOS","iPadOS","Mac Catalyst","tvOS","visionOS","watchOS"],"tokens":[{"kind":"keyword","text":"@property"},{"kind":"text","text":" ("},{"kind":"keyword","text":"nonatomic"},{"kind":"text","text":", "},{"kind":"keyword","text":"assign"},{"kind":"text","text":", "},{"kind":"keyword","text":"readonly"},{"kind":"text","text":") "},{"kind":"typeIdentifier","preciseIdentifier":"c:d","text":"double"},{"kind":"text","text":" "},{"kind":"identifier","text":"relevanceScore"},{"kind":"text","text":";"}]},{"languages":["occ"],"platforms":["macOS"],"tokens":[{"kind":"keyword","text":"@property"},{"kind":"text","text":" ("},{"kind":"keyword","text":"atomic"},{"kind":"text","text":", "},{"kind":"keyword","text":"assign"},{"kind":"text","text":", "},{"kind":"keyword","text":"readonly"},{"kind":"text","text":") "},{"kind":"typeIdentifier","preciseIdentifier":"c:d","text":"double"},{"kind":"text","text":" "},{"kind":"identifier","text":"relevanceScore"},{"kind":"text","text":";"}]}],"kind":"declarations"}},{"op":"replace","path":"\/references\/doc:~1~1com.apple.usernotifications~1documentation~1UserNotifications~1UNNotificationContent\/title","value":"UNNotificationContent"},{"op":"replace","path":"\/references\/doc:~1~1com.apple.usernotifications~1documentation~1UserNotifications~1UNNotificationContent\/fragments","value":[{"kind":"identifier","text":"UNNotificationContent"}]},{"op":"replace","path":"\/references\/doc:~1~1com.apple.usernotifications~1documentation~1UserNotifications~1UNNotificationContent\/navigatorTitle","value":[{"kind":"identifier","text":"UNNotificationContent"}]},{"op":"replace","path":"\/references\/doc:~1~1com.apple.usernotifications~1documentation~1UserNotifications~1UNNotificationContent~1filterCriteria\/title","value":"filterCriteria"},{"op":"replace","path":"\/references\/doc:~1~1com.apple.usernotifications~1documentation~1UserNotifications~1UNNotificationContent~1filterCriteria\/fragments","value":[{"kind":"identifier","text":"filterCriteria"}]},{"op":"replace","path":"\/references\/doc:~1~1com.apple.usernotifications~1documentation~1UserNotifications~1UNNotificationContent~1interruptionLevel\/title","value":"interruptionLevel"},{"op":"replace","path":"\/references\/doc:~1~1com.apple.usernotifications~1documentation~1UserNotifications~1UNNotificationContent~1interruptionLevel\/fragments","value":[{"kind":"identifier","text":"interruptionLevel"}]},{"op":"replace","path":"\/references\/doc:~1~1com.apple.usernotifications~1documentation~1UserNotifications~1UNNotificationContent~1relevanceScore\/title","value":"relevanceScore"},{"op":"replace","path":"\/references\/doc:~1~1com.apple.usernotifications~1documentation~1UserNotifications~1UNNotificationContent~1relevanceScore\/fragments","value":[{"kind":"identifier","text":"relevanceScore"}]},{"op":"replace","path":"\/references\/doc:~1~1com.apple.usernotifications~1documentation~1UserNotifications~1UNNotificationContent~1sound\/title","value":"sound"},{"op":"replace","path":"\/references\/doc:~1~1com.apple.usernotifications~1documentation~1UserNotifications~1UNNotificationContent~1sound\/fragments","value":[{"kind":"identifier","text":"sound"}]},{"op":"replace","path":"\/references\/doc:~1~1com.apple.usernotifications~1documentation~1UserNotifications~1UNNotificationInterruptionLevel\/title","value":"UNNotificationInterruptionLevel"},{"op":"replace","path":"\/references\/doc:~1~1com.apple.usernotifications~1documentation~1UserNotifications~1UNNotificationInterruptionLevel\/fragments","value":[{"kind":"identifier","text":"UNNotificationInterruptionLevel"}]},{"op":"replace","path":"\/references\/doc:~1~1com.apple.usernotifications~1documentation~1UserNotifications~1UNNotificationInterruptionLevel\/navigatorTitle","value":[{"kind":"identifier","text":"UNNotificationInterruptionLevel"}]}],"traits":[{"interfaceLanguage":"occ"}]}]}