Skip to content

Commit b98c4f9

Browse files
authored
fix: add Importance 0 for notification channels (#2507)
1 parent a677603 commit b98c4f9

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

local-notifications/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -739,7 +739,7 @@ An action that can be taken when a notification is displayed.
739739

740740
The importance level. For more details, see the [Android Developer Docs](https://developer.android.com/reference/android/app/NotificationManager#IMPORTANCE_DEFAULT)
741741

742-
<code>1 | 2 | 3 | 4 | 5</code>
742+
<code>0 | 1 | 2 | 3 | 4 | 5</code>
743743

744744

745745
#### Visibility

local-notifications/src/definitions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1127,7 +1127,7 @@ export enum Weekday {
11271127
* The importance level. For more details, see the [Android Developer Docs](https://developer.android.com/reference/android/app/NotificationManager#IMPORTANCE_DEFAULT)
11281128
* @since 1.0.0
11291129
*/
1130-
export type Importance = 1 | 2 | 3 | 4 | 5;
1130+
export type Importance = 0 | 1 | 2 | 3 | 4 | 5;
11311131

11321132
/**
11331133
* The notification visibility. For more details, see the [Android Developer Docs](https://developer.android.com/reference/androidx/core/app/NotificationCompat#VISIBILITY_PRIVATE)

push-notifications/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ Remove all native listeners for this plugin.
575575

576576
The importance level. For more details, see the [Android Developer Docs](https://developer.android.com/reference/android/app/NotificationManager#IMPORTANCE_DEFAULT)
577577

578-
<code>1 | 2 | 3 | 4 | 5</code>
578+
<code>0 | 1 | 2 | 3 | 4 | 5</code>
579579

580580

581581
#### Visibility

push-notifications/src/definitions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ export interface Channel {
410410
* The importance level. For more details, see the [Android Developer Docs](https://developer.android.com/reference/android/app/NotificationManager#IMPORTANCE_DEFAULT)
411411
* @since 1.0.0
412412
*/
413-
export type Importance = 1 | 2 | 3 | 4 | 5;
413+
export type Importance = 0 | 1 | 2 | 3 | 4 | 5;
414414

415415
/**
416416
* The notification visibility. For more details, see the [Android Developer Docs](https://developer.android.com/reference/androidx/core/app/NotificationCompat#VISIBILITY_PRIVATE)

0 commit comments

Comments
 (0)