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 { /**