From 4f13426a6dd820880f21c6e52a30a4db5f0c5c0a Mon Sep 17 00:00:00 2001 From: Felipe Lopes Date: Tue, 29 Jun 2021 04:43:59 -0700 Subject: [PATCH] feat(branch-io): add sendBranchEvent method; deprecated sendCommerceEvent (#3675) --- src/@ionic-native/plugins/branch-io/index.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/@ionic-native/plugins/branch-io/index.ts b/src/@ionic-native/plugins/branch-io/index.ts index 3d345f3d4..1dc24a8fa 100644 --- a/src/@ionic-native/plugins/branch-io/index.ts +++ b/src/@ionic-native/plugins/branch-io/index.ts @@ -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} @@ -193,6 +194,17 @@ export class BranchIo extends IonicNativePlugin { return; } + /** + * Send Branch Event + * @param {string} event + * @param {any} metaData + * @return {Promise} + */ + @Cordova({ otherPromise: true }) + sendBranchEvent(event: string, metaData: any): Promise { + return; + } + /** * create a branchUniversalObj variable to reference with other Branch methods * @param {BranchIoProperties} properties