Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow user attributes with empty string values to be set #160

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mmustafa-tse
Copy link
Contributor

@mmustafa-tse mmustafa-tse commented Sep 8, 2022

Summary

A client noticed in their iOS React Native app that user attributes with empty string are not being set. We confirmed that custom feeds, Web SDK and Android SDK (in both original SDK and React Native) are forwarding the attribute as expected when the string is empty. We were able to identify that this issue is on the iOS SDK and not React Native SDK itself when testing. The code here adds the necessary fixes to allow empty string attributes to not be considered an invalid data type and would forward as the same other SDKs.

Testing Plan

Changed the files locally on my sample app in the mParticle iOS SDK and tested with my sample app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant