Code Monkey home page Code Monkey logo

Comments (10)

davide-scalzo avatar davide-scalzo commented on May 30, 2024 2

Thanks @msageryd . As you guys might know I don't have time to maintain the library and reached out again to Mixpanel team, let's see if they are interested helping out.

from react-native-mixpanel.

variant77 avatar variant77 commented on May 30, 2024 1

Same here. Don't know if it's relevant but I see it mostly on older devices running older Android versions.

from react-native-mixpanel.

barakcoh avatar barakcoh commented on May 30, 2024

I'm starting to think so too, we have a few of these crashes:

Attempt to invoke virtual method 'void com.mixpanel.android.mpmetrics.MixpanelAPI.identify(java.lang.String)' on a null object reference

And mixpanel/mixpanel-android#385 it mentions this exception is thrown when the SDK hasn't been initialized so it seems plausible for a race-condition to occur in React Native apps using Mixpanel.

from react-native-mixpanel.

smkhalsa avatar smkhalsa commented on May 30, 2024

Any update on this? It seems reasonable to promisify the calls to the underlying mixpanel methods

from react-native-mixpanel.

mxaly avatar mxaly commented on May 30, 2024

+1
run into case when .reset() made .track() to not happen. Ended up with ugly setTimeout ;(

from react-native-mixpanel.

ekeuus avatar ekeuus commented on May 30, 2024

Have the same problem, as some calls which are ran on app start fail. Will resort to setTimeout for now, although I'm hoping for a promise-based one.

from react-native-mixpanel.

adamjacob avatar adamjacob commented on May 30, 2024

I'm also running into this issue. Starting to see:

Attempt to invoke virtual method 'void com.mixpanel.android.mpmetrics.MixpanelAPI.track(java.lang.String, org.json.JSONObject)' on a null object reference

Any updates on this?

from react-native-mixpanel.

akshay2604 avatar akshay2604 commented on May 30, 2024

Any update on this? i am facing the same issue. Attempt to invoke virtual method 'void com.mixpanel.android.mpmetrics.MixpanelAPI.track(java.lang.String, org.json.JSONObject)' on a null object reference

from react-native-mixpanel.

msageryd avatar msageryd commented on May 30, 2024

I find this a bit odd.. No shadow at all over @davodesign84, instead kudus to you.

MixPanel is a commercial product. One would think that they'd support projects like this, as this seems to be the only way to use MixPanel on React Native. Did they miss that RN has grown kind of big? Anyway, I'm not using MixPanel anymore.

from react-native-mixpanel.

StevePotter avatar StevePotter commented on May 30, 2024

Everyone, I am in the middle of creating a PR that will have the initialize return a promise. Your app code will be responsible for not calling the track methods until it has initialized, but that's not a major bummer.

The PR is at #123. You can use it today as it has a backwards compatible API

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.