mParticle / mparticle-flutter-sdk

A Flutter plugin that gives developers an API to implement mParticle on Flutter. This supports publishing a Flutter plugin to iOS, Android, and Web.
Apache License 2.0
4 stars 8 forks source link

feat: Implement Android Commerce #6

Closed willpassidomo closed 3 years ago

willpassidomo commented 3 years ago

Summary

Commerce implementation for Android.

Android represents Product action and Promotion actions as String contents, so I had to add an additional field on the dart side for the String value of ProductActionEnum and PromotionActionEnum'. This value is sent in an additional message field,"productActionString"and"promotionActionString"` respectively, and will only be consumed by the Android side of the plugin.

Tested existing buttons for Product, Promotion and Impression and confirmed all fields are being set in the native SDK properly and events are succeeding