Skip to content
This repository was archived by the owner on Mar 14, 2023. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions intercom-bridge.android.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export declare class IntercomBridge {
static registerUnidentifiedUser(): void;
static reset(): void;
static setSecureMode(secureHash: string, secureData: string): void;
static setUserHash(hmac: string): void;
static updateUser(attributes: any): void;
static logEvent(eventName: string, metaData?: any): void;
static displayMessenger(): void;
Expand Down
8 changes: 6 additions & 2 deletions intercom-bridge.android.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as application from 'application';
import * as utils from 'utils/utils';
import * as application from 'tns-core-modules/application';
import * as utils from 'tns-core-modules/utils/utils';

declare let io: any;

Expand Down Expand Up @@ -38,6 +38,10 @@ export class IntercomBridge {
io.intercom.android.sdk.Intercom.client().setSecureMode(secureHash, secureData);
}

static setUserHash(hmac: string) {
io.intercom.android.sdk.Intercom.client().setUserHash(hmac);
}

static updateUser(attributes: any) {
io.intercom.android.sdk.Intercom.client().updateUser(attributes);
}
Expand Down
1 change: 1 addition & 0 deletions intercom-bridge.common.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export declare class IntercomBridge {
static registerUnidentifiedUser(): void;
static reset(): void;
static setSecureMode(secureHash: string, secureData: string): void;
static setUserHash(hmac: string): void;
static updateUser(attributes: any): void;
static logEvent(eventName: string, metaData?: any): void;
static displayMessenger(): void;
Expand Down
1 change: 1 addition & 0 deletions intercom-bridge.common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export declare class IntercomBridge {
static registerUnidentifiedUser(): void;
static reset(): void;
static setSecureMode(secureHash: string, secureData: string): void;
static setUserHash(hmac: string): void;
static updateUser(attributes: any): void;
static logEvent(eventName: string, metaData?: any): void;
static displayMessenger(): void;
Expand Down
1 change: 1 addition & 0 deletions intercom-bridge.ios.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export declare class IntercomBridge {
static registerUnidentifiedUser(): void;
static reset(): void;
static setSecureMode(secureHash: string, secureData: string): void;
static setUserHash(hmac: string): void;
static updateUser(attributes: any): void;
static logEvent(eventName: string, metaData?: any): void;
static displayMessenger(): void;
Expand Down
4 changes: 4 additions & 0 deletions intercom-bridge.ios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ export class IntercomBridge {
Intercom.setHMACData(secureHash, secureData);
}

static setUserHash(hmac: string) {
Intercom.setUserHash(hmac);
}

static updateUser(attributes: any) {
Intercom.updateUserWithAttributes(attributes);
}
Expand Down
332 changes: 332 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading