Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(mobile-messaging): revision of optional parameters #3667

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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