Compare commits

...
Author SHA1 Message Date
Daniel Sogl 421bbf20c2 feat(intercom): add suppressProactiveContent method
Adds suppressProactiveContent(types) added in cordova-plugin-intercom 16.4.0, which lets apps independently suppress carousel/survey proactive content apart from setInAppMessageVisibility.
2026-07-27 22:16:33 +02:00
@@ -219,6 +219,17 @@ export class Intercom extends AwesomeCordovaNativePlugin {
return;
}
/**
* Suppress the given proactive content types, independently of `setInAppMessageVisibility`.
* @note All proactive content is visible by default; pass an empty array to unsuppress all.
*
* @param types An array of content type strings to suppress, e.g. `[IntercomPresentContentType.Carousel, IntercomPresentContentType.Survey]`.
*/
@Cordova()
suppressProactiveContent(types: IntercomPresentContentType[]): Promise<void> {
return;
}
/**
* Hide all Intercom windows that are currently displayed.
* This will hide the Messenger, Help Center, Articles, and in-product messages (eg. Mobile Carousels, chats, and posts).
@@ -375,8 +386,7 @@ export enum IntercomPresentContentType {
}
export type IntercomPresentContent =
| { id: string; type: IntercomPresentContentType }
| { ids: string[]; type: IntercomPresentContentType };
{ id: string; type: IntercomPresentContentType } | { ids: string[]; type: IntercomPresentContentType };
export interface IntercomUserAttributes {
email?: string;