From 944d25147f2c0b89d0e7acb1fa1a6fe7fa4941f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tereza=20Juri=C4=87?= Date: Tue, 29 Jun 2021 13:45:10 +0200 Subject: [PATCH] fix(mobile-messaging): revision of optional parameters (#3667) --- .../plugins/mobile-messaging/index.ts | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/@ionic-native/plugins/mobile-messaging/index.ts b/src/@ionic-native/plugins/mobile-messaging/index.ts index c77fc755e..d6550e198 100644 --- a/src/@ionic-native/plugins/mobile-messaging/index.ts +++ b/src/@ionic-native/plugins/mobile-messaging/index.ts @@ -35,14 +35,14 @@ export interface Configuration { messageStorage?: string; defaultMessageStorage?: boolean; ios?: { - notificationTypes?: string[]; + notificationTypes?: string[]; // ['alert', 'badge', 'sound'] forceCleanup?: boolean; logging?: boolean; }; android?: { - notificationIcon: string; // a resource name for a status bar icon (without extension), located in '/platforms/android/app/src/main/res/mipmap' - multipleNotifications: boolean; - notificationAccentColor: string; + notificationIcon?: string; // a resource name for a status bar icon (without extension), located in '/platforms/android/app/src/main/res/mipmap' + multipleNotifications?: boolean; // set to 'true' to enable multiple notifications + notificationAccentColor?: string; // set to hex color value in format '#RRGGBB' or '#AARRGGBB' }; privacySettings?: { applicationCodePersistingDisabled?: boolean; @@ -91,7 +91,7 @@ export interface Installation { sdkVersion?: string; appVersion?: string; os?: OS; - osVersion: string; + osVersion?: string; deviceManufacturer?: string; deviceModel?: string; deviceSecure?: boolean; @@ -102,10 +102,13 @@ export interface Installation { customAttributes?: Record; } +/** + * User's unique ID. One UserIdentity parameter must be provided if used. + */ export interface UserIdentity { phones?: string[]; emails?: string[]; - externalUserId: string; + externalUserId?: string; } export interface PersonalizeContext {