Skip to content

Commit 1663cba

Browse files
committed
adding relevanceScore and interruptionLevel to OSNotification
These are iOS 15 only properties and are being marked as readonly and nullable.
1 parent 2e20861 commit 1663cba

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

iOS_SDK/OneSignalSDK/Source/OneSignal.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,12 @@ typedef NS_ENUM(NSUInteger, OSNotificationActionType) {
130130
/* iOS 10+ : Groups notifications into threads */
131131
@property(readonly, nullable)NSString *threadId;
132132

133+
/* iOS 15+ : Relevance Score for notification summary */
134+
@property(readonly, nullable)NSNumber *relevanceScore;
135+
136+
/* iOS 15+ : Interruption Level */
137+
@property(readonly)NSString *interruptionLevel;
138+
133139
/* Parses an APNS push payload into a OSNotification object.
134140
Useful to call from your NotificationServiceExtension when the
135141
didReceiveNotificationRequest:withContentHandler: method fires. */

0 commit comments

Comments
 (0)