File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ Pod::Spec.new do |s|
13
13
s . source_files = 'Classes/**/*'
14
14
s . public_header_files = 'Classes/**/*.h'
15
15
s . dependency 'Flutter'
16
- s . dependency 'OneSignalXCFramework' , '3.7 .0'
16
+ s . dependency 'OneSignalXCFramework' , '3.8 .0'
17
17
s . ios . deployment_target = '9.0'
18
18
s . static_framework = true
19
19
end
Original file line number Diff line number Diff line change @@ -85,6 +85,16 @@ class OSNotification extends JSONStringRepresentable {
85
85
/// The subtitle of the notification
86
86
String ? subtitle;
87
87
88
+ /// (iOS Only)
89
+ /// value between 0 and 1 for sorting notifications in a notification summary
90
+ double ? relevanceScore;
91
+
92
+ /// (iOS Only)
93
+ /// The interruption level for the notification. This controls how the
94
+ /// notification will be displayed to the user if they are using focus modes
95
+ /// or notification summaries
96
+ String ? interruptionLevel;
97
+
88
98
/// (Android Only)
89
99
/// Summary notifications grouped
90
100
/// Notification payload will have the most recent notification received.
@@ -186,6 +196,10 @@ class OSNotification extends JSONStringRepresentable {
186
196
this .subtitle = json['subtitle' ] as String ? ;
187
197
if (json.containsKey ('attachments' ))
188
198
this .attachments = json['attachments' ].cast <String , dynamic >();
199
+ if (json.containsKey ('relevanceScore' ))
200
+ this .relevanceScore = json['relevanceScore' ] as double ? ;
201
+ if (json.containsKey ('interruptionLevel' ))
202
+ this .interruptionLevel = json['interruptionLevel' ] as String ? ;
189
203
190
204
// Android Specific Parameters
191
205
if (json.containsKey ("smallIcon" ))
You can’t perform that action at this time.
0 commit comments