From 76ff28b08f385728e4874a8c9e458b77e694678c Mon Sep 17 00:00:00 2001 From: Maxim Belov <belov1988@gmail.com> Date: Mon, 10 Mar 2025 19:20:48 +0200 Subject: [PATCH] feat(intercom): Add new methods (#4914) --- .../plugins/intercom/index.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/@awesome-cordova-plugins/plugins/intercom/index.ts b/src/@awesome-cordova-plugins/plugins/intercom/index.ts index 35c25decc..8b941832f 100644 --- a/src/@awesome-cordova-plugins/plugins/intercom/index.ts +++ b/src/@awesome-cordova-plugins/plugins/intercom/index.ts @@ -58,6 +58,22 @@ export class Intercom extends AwesomeCordovaNativePlugin { return; } + /** + * Determines if there is currently a user logged in. + */ + isUserLoggedIn(): Promise<boolean> { + return; + } + + /** + * Fetches the user attribtues of the currently logged in user. + * + * return A user registration object. + */ + fetchLoggedInUserAttributes(): Promise<any> { + return; + } + /** * Set `hash` string if you are using Identity Verification for your Intercom workspace. * @note This should be called before any user login takes place.