Skip to content

Commit

Permalink
fix(mobile-messaging): revision of optional parameters (#3667)
Browse files Browse the repository at this point in the history
  • Loading branch information
tjuric committed Jun 29, 2021
1 parent 4f13426 commit 944d251
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/@ionic-native/plugins/mobile-messaging/index.ts
Expand Up @@ -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;
Expand Down Expand Up @@ -91,7 +91,7 @@ export interface Installation {
sdkVersion?: string;
appVersion?: string;
os?: OS;
osVersion: string;
osVersion?: string;
deviceManufacturer?: string;
deviceModel?: string;
deviceSecure?: boolean;
Expand All @@ -102,10 +102,13 @@ export interface Installation {
customAttributes?: Record<string, string | number | boolean>;
}

/**
* 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 {
Expand Down

0 comments on commit 944d251

Please sign in to comment.