cordova-ionic-phonegap-branch-deep-linking-attribution icon indicating copy to clipboard operation
cordova-ionic-phonegap-branch-deep-linking-attribution copied to clipboard

NSTaggedPointerString error

Open marcelkipp opened this issue 4 years ago • 5 comments

I have an issue with using the sendCommerceEvent-Method of the module. As soon as I'm calling the method my ios app is crashing with the following error:

I am calling the method as following in my component:

NSTaggedPointerString countByEnumeratingWithState in Line 320 in the file BranchSDK.m

`var metadata = { customerEventAlias: 'Purchase Event', transactionID: this.buyInfo.transaction.original_transaction_id, currency: this.buyInfo.currency, revenue: this.buyInfo.prices, shipping: 0, tax: 0, coupon: 'test_coupon', affiliation: 'test_affiliation', description: 'Test add to cart event', searchQuery: 'test keyword', customData: this.buyInfo };

this.branch.sendCommerceEvent("PURCHASE", metadata);`

Does anyone had this issue before or do I send wrong data to the plugin?

marcelkipp avatar Sep 16 '20 17:09 marcelkipp

We're experience the same thing and are not able to track events like TRIAL_STARTED and PURCHASE.

Are there any updates in this issue?

felipeclopes avatar Apr 19 '21 22:04 felipeclopes

@felipeclopes No, unfortunately no updated. We decided to remove branch from our project.

marcelkipp avatar Apr 20 '21 06:04 marcelkipp

Hey @marcelkipp @felipeclopes Can you provide additional information about your build environment? Cordova version, branch-cordova-sdk version, node version, Xcode version, installed plugins.

Please note that sendCommerceEvent method is deprecated since v.3.1.0 Refer to https://help.branch.io/developers-hub/docs/cordova-phonegap-ionic#track-commerce for tracking commerce events.

adrianyg7 avatar May 14 '21 23:05 adrianyg7

I created this PR fixing the issue on IonicNative - so now the IonicNative Branch library has the correct method sendBranchEvent implementation. It is merged and approved.

felipeclopes avatar Jul 20 '21 16:07 felipeclopes

@echo-branch this issue can be closed.

felipeclopes avatar Sep 10 '21 00:09 felipeclopes