From c50187f855b5a32391af63b4b8e019752c266ef2 Mon Sep 17 00:00:00 2001 From: Akshay Date: Mon, 19 Aug 2024 23:13:10 +0530 Subject: [PATCH] Added setLocation for Core --- .../plugins/webengage/index.ts | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/@awesome-cordova-plugins/plugins/webengage/index.ts b/src/@awesome-cordova-plugins/plugins/webengage/index.ts index b92569f1c..78bd3ac77 100644 --- a/src/@awesome-cordova-plugins/plugins/webengage/index.ts +++ b/src/@awesome-cordova-plugins/plugins/webengage/index.ts @@ -99,7 +99,7 @@ export class WebengageUser extends AwesomeCordovaNativePlugin { login(userId: string, jwtToken?: string): Promise { return; } - + /** * Logs user in * @param {string} userId @@ -150,6 +150,17 @@ export class WebengageUser extends AwesomeCordovaNativePlugin { setUserOptIn(channel: string, optIn: any): Promise { return; } + + /** + * Sets user location + * @param {number} latitude + * @param {number} longitude + * @returns {Promise} + */ + @Cordova() + setLocation(latitude: number, longitude: number): Promise { + return; + } } /** @@ -160,7 +171,6 @@ export class WebengageUser extends AwesomeCordovaNativePlugin { plugin: 'cordova-plugin-webengage', pluginRef: 'webengage.jwtManager', }) - @Injectable() export class WebengageJwtManager extends AwesomeCordovaNativePlugin { /**