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

prefix device-specific distinct IDs with '$device:' #810

Merged
merged 2 commits into from
Feb 24, 2023

Conversation

csiden
Copy link
Contributor

@csiden csiden commented Feb 16, 2023

No description provided.

@@ -14,6 +14,7 @@
import com.mixpanel.android.util.HttpService;
import com.mixpanel.android.util.RemoteService;

import org.hamcrest.CoreMatchers;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: redundant

@@ -1779,7 +1777,7 @@ public void identify(String distinctId) {
MPLog.e(LOGTAG, "Can't identify with null distinct_id.");
return;
}
if (distinctId != mPersistentIdentity.getEventsDistinctId()) {
if (!distinctId.equals(mPersistentIdentity.getEventsDistinctId())) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch!

README.md Outdated
@@ -158,7 +158,7 @@ We'd also love for you to come and work with us! Check out our **[opening positi
<a name="changelog"></a>
# Changelog

See [wiki page](https://github.com/mixpanel/mixpanel-android/wiki/Changelog).
See [wiki page](CHANGELOG.md).
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
See [wiki page](CHANGELOG.md).
See [changelog](CHANGELOG.md).

Copy link
Collaborator

@zihejia zihejia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@csiden csiden merged commit e9dfa8b into mixpanel:master Feb 24, 2023
@csiden csiden deleted the branch branch February 24, 2023 21:32
@carstenhag
Copy link

Hey there, we just noticed that on AND, some distinct IDs have a "$device:" prefix. On iOS this is never the case. We are confused as to why this is the case? :D

Screenshot 2023-07-28 at 10 25 22

@jaredmixpanel
Copy link
Collaborator

@carstenhag mixpanel-swift started prefixing $device: in v4.0.5: https://github.com/mixpanel/mixpanel-swift/releases/tag/v4.0.5

The Objective-C SDK started w/ v5.0.2: https://github.com/mixpanel/mixpanel-iphone/releases/tag/v5.0.2

Both were released 5 months ago. If you are using a version >= those, then I would recommend reaching out to support@mixpanel.com for help troubleshooting any identity management issues you're experiencing.

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

Successfully merging this pull request may close these issues.

None yet

4 participants