Skip to content

Commit

Permalink
feat(branch-io): add sendBranchEvent method; deprecated sendCommerceE…
Browse files Browse the repository at this point in the history
…vent (#3675)
  • Loading branch information
felipeclopes authored Jun 29, 2021
1 parent c5d6066 commit 4f13426
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/@ionic-native/plugins/branch-io/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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>}
Expand All @@ -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
Expand Down

0 comments on commit 4f13426

Please sign in to comment.