customerio / customerio-reactnative

MIT License
23 stars 11 forks source link

Sending null param on identify #112

Closed serdargun closed 1 year ago

serdargun commented 1 year ago

SDK version: Customerio-reactnative: ^2.0.0-beta.1 React Native: 0.64.4

We may have some null people params as in the example below. When we want to send this object its not working because of null value. It took me a long time to detect where the mistake was. I can kindly suggest that you can use type conversion for null values like null to string. Filtering user params for null values also takes time.

CustomerIO.identify("person@example.com", {first_name: 'Lorem', last_name: 'Ipsum', phone_number: null})

StephMoreno commented 1 year ago

Hi @serdargun,

I'm Stephanie, a Product Manager here. I wanted to get a little more information from you on this request.

Lastly, we currently don't allow this as a string to intentionally not make the assumption on behalf of all our customers. Our engineers recommend this be handled on your end. Is this something you've considered?