Code Monkey home page Code Monkey logo

Comments (8)

davide-scalzo avatar davide-scalzo commented on May 29, 2024

Thanks @sslash I'll have a look if I can find the time to expose that.

from react-native-mixpanel.

mikelambert avatar mikelambert commented on May 29, 2024

@sslash "get distinct id" is supported in the web API, but not in the iOS API, right?
https://mixpanel.com/site_media/doctyl/uploads/iPhone-spec/Classes/Mixpanel/index.html#//apple_ref/occ/cl/Mixpanel

So probably would be better to ask the Mixpanel iOS team to expose it in their API first, before react-native can even expose it? Or am I misunderstanding what function you want exposed?

from react-native-mixpanel.

davide-scalzo avatar davide-scalzo commented on May 29, 2024

@mikelambert thanks, I had forgotten to reply to this after checking it.
I could try to ask them and see how it goes.

from react-native-mixpanel.

ewdicus avatar ewdicus commented on May 29, 2024

Just a heads up, this isn't a function. It's exposed as a property for iOS: https://mixpanel.com/site_media/doctyl/uploads/iPhone-spec/Classes/Mixpanel/index.html#//apple_ref/occ/instp/Mixpanel/distinctId

from react-native-mixpanel.

ewdicus avatar ewdicus commented on May 29, 2024

I went ahead and added a pull request: #25

There might be a better way to expose this as a property.

from react-native-mixpanel.

davide-scalzo avatar davide-scalzo commented on May 29, 2024

That's great, thanks Elliot! Would be nice to get the same on Android. Anyone able to submit a PR for Android?

from react-native-mixpanel.

kevando avatar kevando commented on May 29, 2024

Is this the issue where device ID does not persist? Link

Whenever I change simulators or update the app, the user in Mixpanel changes. How can I prevent that from happening?

from react-native-mixpanel.

aakashsigdel avatar aakashsigdel commented on May 29, 2024

@kevando I think you can do that with alias and identify

Closing this thread as getDistinctId is already implemented on both iOS and android

from react-native-mixpanel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.