mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2026-05-02 00:07:23 +08:00
Added setLocation for Core
This commit is contained in:
@@ -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 {
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user