Skip to content

Commit 3f0c92c

Browse files
feat(local-notifications): remove summaryArgument
1 parent 313ef5d commit 3f0c92c

3 files changed

Lines changed: 0 additions & 20 deletions

File tree

local-notifications/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,6 @@ The object that describes a local notification.
469469
| **`actionTypeId`** | <code>string</code> | Associate an action type with this notification. | 1.0.0 |
470470
| **`extra`** | <code>any</code> | Set extra data to store within this notification. | 1.0.0 |
471471
| **`threadIdentifier`** | <code>string</code> | Used to group multiple notifications. Sets `threadIdentifier` on the [`UNMutableNotificationContent`](https://developer.apple.com/documentation/usernotifications/unmutablenotificationcontent). Only available for iOS. | 1.0.0 |
472-
| **`summaryArgument`** | <code>string</code> | The string this notification adds to the category's summary format string. Sets `summaryArgument` on the [`UNMutableNotificationContent`](https://developer.apple.com/documentation/usernotifications/unmutablenotificationcontent). Only available for iOS. | 1.0.0 |
473472
| **`relevanceScore`** | <code>number</code> | The score the system uses to determine if the notification is the featured notification when the system groups the app's notifications. The value must be between 0 and 1, where 0 is the least relevant and 1 is the most relevant. The default value is 0. Sets `relevanceScore` on the [`UNMutableNotificationContent`](https://developer.apple.com/documentation/usernotifications/unmutablenotificationcontent). Only available for iOS. | 8.1.0 |
474473
| **`interruptionLevel`** | <code><a href="#interruptionlevel">InterruptionLevel</a></code> | The interruption level that indicates the priority and delivery timing of a notification. Sets `interruptionLevel` on the [`UNMutableNotificationContent`](https://developer.apple.com/documentation/usernotifications/unmutablenotificationcontent). Only available for iOS. | 8.1.0 |
475474
| **`group`** | <code>string</code> | Used to group multiple notifications. Calls `setGroup()` on [`NotificationCompat.Builder`](https://developer.android.com/reference/androidx/core/app/NotificationCompat.Builder) with the provided value. Only available for Android. | 1.0.0 |

local-notifications/ios/Sources/LocalNotificationsPlugin/LocalNotificationsPlugin.swift

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -255,12 +255,6 @@ public class LocalNotificationsPlugin: CAPPlugin, CAPBridgedPlugin {
255255
content.threadIdentifier = threadIdentifier
256256
}
257257

258-
if let summaryArgument = notification["summaryArgument"] as? String {
259-
if #unavailable(iOS 15.0) {
260-
content.summaryArgument = summaryArgument
261-
}
262-
}
263-
264258
if let relevanceScore = notification["relevanceScore"] as? Double {
265259
content.relevanceScore = relevanceScore
266260
}

local-notifications/src/definitions.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -671,19 +671,6 @@ export interface LocalNotificationSchema {
671671
*/
672672
threadIdentifier?: string;
673673

674-
/**
675-
* The string this notification adds to the category's summary format string.
676-
*
677-
* Sets `summaryArgument` on the
678-
* [`UNMutableNotificationContent`](https://developer.apple.com/documentation/usernotifications/unmutablenotificationcontent).
679-
*
680-
* Only available for iOS.
681-
*
682-
* @since 1.0.0
683-
* @deprecated Use `relevanceScore` instead. This property is ignored on iOS 15+.
684-
*/
685-
summaryArgument?: string;
686-
687674
/**
688675
* The score the system uses to determine if the notification is the
689676
* featured notification when the system groups the app's notifications.

0 commit comments

Comments
 (0)