From 3ae7226a848fdf3cec8e9b0597bf26b5961907f9 Mon Sep 17 00:00:00 2001 From: Bas Bosman Date: Wed, 28 Aug 2024 14:10:20 +0200 Subject: [PATCH] fix(ios): add missing critical to typings (#271) --- types/index.d.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/types/index.d.ts b/types/index.d.ts index 77c2b8484..d6e35f3ae 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -220,6 +220,14 @@ declare namespace PhonegapPluginPush { * Action Buttons on iOS - https://github.com/havesource/cordova-plugin-push/blob/master/docs/PAYLOAD.md#action-buttons-1 */ categories?: CategoryArray + /** + * If `true` the device can show up critical alerts. (Possible since iOS 12 with a special entitlement) + * Default is false|"false". + * Note: the value you set this option to the first time you call the init method will be how the application always acts. + * Once this is set programmatically in the init method it can only be changed manually by the user in Settings > Notifications > `App Name`. + * This is normal iOS behaviour. + */ + critical?: boolean /** * Whether to use prod or sandbox GCM setting. Defaults to false. */