From bcfb6f829bfeb7f31776433ab8baaf2728ac1d01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=A8=E3=83=AA=E3=82=B9?= Date: Mon, 9 Dec 2024 10:33:46 +0900 Subject: [PATCH] chore(*): updated typings - comments & iOS forceShow option --- types/index.d.ts | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/types/index.d.ts b/types/index.d.ts index 4124e3ff3..77e150b71 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -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 } } @@ -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 } @@ -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 /**