Skip to content

Commit

Permalink
chore(*): updated typings - comments & iOS forceShow option
Browse files Browse the repository at this point in the history
  • Loading branch information
erisu committed Dec 9, 2024
1 parent c0463de commit bcfb6f8
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,11 @@ declare namespace PhonegapPluginPush {
/**
* If the array contains one or more strings each string will be used to subscribe to a FcmPubSub topic. Defaults to [].
*/
topics?: string[]
topics?: string[],
/**
* If true will always show a notification, even when the app is on the foreground. Default is false.
*/
forceShow?: boolean
}
}

Expand All @@ -254,9 +258,21 @@ declare namespace PhonegapPluginPush {
}

interface CategoryActionData {
/**
* The javascript event you want to fire.
*/
callback: string
/**
* The label for the button.
*/
title: string
/**
* Whether or not to bring your app to the foreground
*/
foreground: boolean
/**
* Colors the button red as a warning to the user that the action may be destructive.
*/
destructive: boolean
}

Expand Down Expand Up @@ -306,7 +322,7 @@ declare namespace PhonegapPluginPush {
[name: string]: any

/**
* Whether the notification was received while the app was in the foreground
* Whether the notification was received while the app was in the foreground.
*/
foreground?: boolean
/**
Expand Down

0 comments on commit bcfb6f8

Please sign in to comment.