-
Notifications
You must be signed in to change notification settings - Fork 27
Description
Hey there! We noticed after the recent upgrade that we stopped receiving commerce events for "Add to Cart" from Android only (iOS still works).
I'm thinking perhaps it had to do with the changes recently during the port to kotlin? It seems like in the new version, TransactionAttributes are defaulted with a empty TransactionAttributes and a '' for transactionId:
react-native-mparticle/js/index.tsx
Line 712 in 3749d17
| transactionAttributes: TransactionAttributes = new TransactionAttributes('') |
In the old code as near as I can tell, it used to be initialized with transactionAttributes = {}, which I guess may have worked better with whatever Android is doing?
react-native-mparticle/js/index.js
Line 495 in a09018c
| static createProductActionEvent (productActionType, products, transactionAttributes = {}) { |
Is transactionId now required for all commerce events? Should we just set it to a random string? We don't have a "cart" exactly so there's no meaningful transactionId for us to track before an actual purchase.
Thanks for any help on this!