Skip to content

Commit

Permalink
Merge pull request #3240 from swernimo/master
Browse files Browse the repository at this point in the history
fix(push): add showBadge to android channel
  • Loading branch information
mhartington committed Nov 26, 2019
2 parents f4a4bb9 + 8e79890 commit b280ef4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/@ionic-native/plugins/push/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ export interface Channel {
sound?: string;
vibration?: boolean | number[];
visibility?: Visibility;
badge?: boolean;
}

export type PushEvent = string;
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit b280ef4

Please sign in to comment.