Skip to content

Commit d04a74e

Browse files
authored
fix: add Importance 0 for notification channels (#2507) (#2508)
1 parent 1fb4f35 commit d04a74e

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
@@ -1139,7 +1139,7 @@ export enum Weekday {
11391139
* The importance level. For more details, see the [Android Developer Docs](https://developer.android.com/reference/android/app/NotificationManager#IMPORTANCE_DEFAULT)
11401140
* @since 1.0.0
11411141
*/
1142-
export type Importance = 1 | 2 | 3 | 4 | 5;
1142+
export type Importance = 0 | 1 | 2 | 3 | 4 | 5;
11431143

11441144
/**
11451145
* 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
@@ -415,7 +415,7 @@ export interface Channel {
415415
* The importance level. For more details, see the [Android Developer Docs](https://developer.android.com/reference/android/app/NotificationManager#IMPORTANCE_DEFAULT)
416416
* @since 1.0.0
417417
*/
418-
export type Importance = 1 | 2 | 3 | 4 | 5;
418+
export type Importance = 0 | 1 | 2 | 3 | 4 | 5;
419419

420420
/**
421421
* 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)