From 6c65d22ddf6a834ca1b76fe1169e9d5b48ed61ce Mon Sep 17 00:00:00 2001 From: Michael Gangolf Date: Tue, 19 Dec 2023 22:16:42 +0100 Subject: [PATCH 1/2] docs: add info about iOS foreground notifications --- .../Titanium/App/iOS/UserNotificationCenter.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/apidoc/Titanium/App/iOS/UserNotificationCenter.yml b/apidoc/Titanium/App/iOS/UserNotificationCenter.yml index 75d8708585b..3783c08e971 100644 --- a/apidoc/Titanium/App/iOS/UserNotificationCenter.yml +++ b/apidoc/Titanium/App/iOS/UserNotificationCenter.yml @@ -133,7 +133,7 @@ properties: - name: userInfo summary: Custom data object. - type: Dictionary + type: Dictionary - name: category summary: Category identifier of the notification. @@ -160,6 +160,19 @@ properties: - identifier: The identifier of the region. type: Dictionary +--- +name: UserInfoDictionary +summary: | + Dictionary object of parameters. +platforms: [iphone, ipad, macos] + +properties: + - name: showInForground + summary: Show notification if app is in foreground + description: | + Only available in iOS >= 10. Boolean if a notification banner is shown if the app is in foreground. + type: Number + --- name: GetUserNotificationSettings summary: | From 4e0f4e9984dafe3073e9082c1dc678c914db8c3a Mon Sep 17 00:00:00 2001 From: Michael Gangolf Date: Fri, 12 Jan 2024 10:30:16 +0100 Subject: [PATCH 2/2] update docs --- apidoc/Titanium/App/iOS/UserNotificationCenter.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apidoc/Titanium/App/iOS/UserNotificationCenter.yml b/apidoc/Titanium/App/iOS/UserNotificationCenter.yml index 3783c08e971..f9b32f8d54a 100644 --- a/apidoc/Titanium/App/iOS/UserNotificationCenter.yml +++ b/apidoc/Titanium/App/iOS/UserNotificationCenter.yml @@ -133,7 +133,7 @@ properties: - name: userInfo summary: Custom data object. - type: Dictionary + type: UserInfoDictionary - name: category summary: Category identifier of the notification. @@ -170,7 +170,7 @@ properties: - name: showInForground summary: Show notification if app is in foreground description: | - Only available in iOS >= 10. Boolean if a notification banner is shown if the app is in foreground. + Boolean if a notification banner is shown if the app is in foreground. type: Number ---