Added setLocation for Core

This commit is contained in:
Akshay
2024-08-19 23:13:10 +05:30
parent 08f1dcc0c9
commit c50187f855
@@ -99,7 +99,7 @@ export class WebengageUser extends AwesomeCordovaNativePlugin {
login(userId: string, jwtToken?: string): Promise<any> { login(userId: string, jwtToken?: string): Promise<any> {
return; return;
} }
/** /**
* Logs user in * Logs user in
* @param {string} userId * @param {string} userId
@@ -150,6 +150,17 @@ export class WebengageUser extends AwesomeCordovaNativePlugin {
setUserOptIn(channel: string, optIn: any): Promise<any> { setUserOptIn(channel: string, optIn: any): Promise<any> {
return; return;
} }
/**
* Sets user location
* @param {number} latitude
* @param {number} longitude
* @returns {Promise<any>}
*/
@Cordova()
setLocation(latitude: number, longitude: number): Promise<any> {
return;
}
} }
/** /**
@@ -160,7 +171,6 @@ export class WebengageUser extends AwesomeCordovaNativePlugin {
plugin: 'cordova-plugin-webengage', plugin: 'cordova-plugin-webengage',
pluginRef: 'webengage.jwtManager', pluginRef: 'webengage.jwtManager',
}) })
@Injectable() @Injectable()
export class WebengageJwtManager extends AwesomeCordovaNativePlugin { export class WebengageJwtManager extends AwesomeCordovaNativePlugin {
/** /**