Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ios/onesignal_flutter.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Pod::Spec.new do |s|
s.source_files = 'Classes/**/*'
s.public_header_files = 'Classes/**/*.h'
s.dependency 'Flutter'
s.dependency 'OneSignalXCFramework', '3.7.0'
s.dependency 'OneSignalXCFramework', '3.8.0'
s.ios.deployment_target = '9.0'
s.static_framework = true
end
14 changes: 14 additions & 0 deletions lib/src/notification.dart
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,16 @@ class OSNotification extends JSONStringRepresentable {
/// The subtitle of the notification
String? subtitle;

/// (iOS Only)
/// value between 0 and 1 for sorting notifications in a notification summary
double? relevanceScore;

/// (iOS Only)
/// The interruption level for the notification. This controls how the
/// notification will be displayed to the user if they are using focus modes
/// or notification summaries
String? interruptionLevel;

/// (Android Only)
/// Summary notifications grouped
/// Notification payload will have the most recent notification received.
Expand Down Expand Up @@ -186,6 +196,10 @@ class OSNotification extends JSONStringRepresentable {
this.subtitle = json['subtitle'] as String?;
if (json.containsKey('attachments'))
this.attachments = json['attachments'].cast<String, dynamic>();
if (json.containsKey('relevanceScore'))
this.relevanceScore = json['relevanceScore'] as double?;
if (json.containsKey('interruptionLevel'))
this.interruptionLevel = json['interruptionLevel'] as String?;

// Android Specific Parameters
if (json.containsKey("smallIcon"))
Expand Down