mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-01-19 00:12:53 +08:00
fix(push): add showBadge to android channel
This commit is contained in:
parent
f4a4bb9e55
commit
8e79890251
@ -231,6 +231,7 @@ export interface Channel {
|
||||
sound?: string;
|
||||
vibration?: boolean | number[];
|
||||
visibility?: Visibility;
|
||||
badge?: boolean;
|
||||
}
|
||||
|
||||
export type PushEvent = string;
|
||||
@ -270,7 +271,11 @@ export type PushEvent = string;
|
||||
* id: "testchannel1",
|
||||
* description: "My first test channel",
|
||||
* // The importance property goes from 1 = Lowest, 2 = Low, 3 = Normal, 4 = High and 5 = Highest.
|
||||
* importance: 3
|
||||
* importance: 3,
|
||||
* //badge is used to if badge appears on the app icon see https://developer.android.com/reference/android/app/NotificationChannel.html#setShowBadge(boolean).
|
||||
* //false = no badge on app icon.
|
||||
* //true = badge on app icon
|
||||
* badge: false
|
||||
* }).then(() => console.log('Channel created'));
|
||||
*
|
||||
* // Delete a channel (Android O and above)
|
||||
|
Loading…
Reference in New Issue
Block a user