feat(branch-io): add sendBranchEvent method; deprecated sendCommerceEvent (#3675)

This commit is contained in:
Felipe Lopes 2021-06-29 04:43:59 -07:00 committed by GitHub
parent c5d606633e
commit 4f13426a6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -184,6 +184,7 @@ export class BranchIo extends IonicNativePlugin {
/** /**
* Send Commerce Event * 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 {string} event
* @param {any} metaData * @param {any} metaData
* @return {Promise<any>} * @return {Promise<any>}
@ -193,6 +194,17 @@ export class BranchIo extends IonicNativePlugin {
return; 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 * create a branchUniversalObj variable to reference with other Branch methods
* @param {BranchIoProperties} properties * @param {BranchIoProperties} properties