mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-01-19 08:32:52 +08:00
feat(branch-io): add sendBranchEvent method; deprecated sendCommerceEvent (#3675)
This commit is contained in:
parent
c5d606633e
commit
4f13426a6d
@ -184,6 +184,7 @@ export class BranchIo extends IonicNativePlugin {
|
||||
|
||||
/**
|
||||
* Send Commerce Event
|
||||
* @deprecated since v.3.1.0. As of https://help.branch.io/developers-hub/docs/cordova-phonegap-ionic#track-commerce
|
||||
* @param {string} event
|
||||
* @param {any} metaData
|
||||
* @return {Promise<any>}
|
||||
@ -193,6 +194,17 @@ export class BranchIo extends IonicNativePlugin {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Send Branch Event
|
||||
* @param {string} event
|
||||
* @param {any} metaData
|
||||
* @return {Promise<any>}
|
||||
*/
|
||||
@Cordova({ otherPromise: true })
|
||||
sendBranchEvent(event: string, metaData: any): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* create a branchUniversalObj variable to reference with other Branch methods
|
||||
* @param {BranchIoProperties} properties
|
||||
|
Loading…
Reference in New Issue
Block a user