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 userId to be nullable on identify for iOS #1025

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

Conversation

danielgomezrico
Copy link

@danielgomezrico danielgomezrico commented Dec 17, 2021

What does this PR do?
Allow that userId to be null on identify

How should this be manually tested?
Call identify with userId null, like:

[[SEGAnalytics sharedAnalytics] identify: null traits: {"something": "other"}];

It throws an exception:

[NSNull length]: unrecognized selector sent to instance 0x1db450558

Fix #1024

Screenshots or screencasts (if UI/UX change)
On docs the userId is defined as optional
https://segment.com/docs/connections/sources/catalog/libraries/mobile/ios/#identify
image

@danielgomezrico
Copy link
Author

@prayansh Hi, Im not sure why the CI fails here, it looks like it is a configuration error from the repo, can we merge this? it is pretty important for our company to allow this fast

@danielgomezrico danielgomezrico changed the title Allow userId to be nullable on identify Allow userId to be nullable on identify for iOS Dec 20, 2021
@danielgomezrico
Copy link
Author

@prayansh ping

@HerrNiklasRaab
Copy link

Hey @wenxi-zeng, any chance this can get merged real quick?

@danielgomezrico
Copy link
Author

👀 ping

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.

Identify userId is optional but the implementation does not reflect this
2 participants