Comments (10)
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.
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.
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.
Any update on this? It seems reasonable to promisify the calls to the underlying mixpanel methods
from react-native-mixpanel.
+1
run into case when .reset()
made .track()
to not happen. Ended up with ugly setTimeout ;(
from react-native-mixpanel.
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.
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.
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.
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.
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)
- Mixpanel.sharedInstanceWithToken is not a function HOT 3
- Feature: Group Profile Properties
- MixpanelInstance.initialized boolean is missing from type definitions
- Property 'connectedScenes' not found on object of type 'UIApplication *'
- Please update the notification payload to support the latest iOS HOT 1
- Events not being fired to Mixpanel HOT 14
- Testing with Jest and Enzyme: TypeError: Cannot read property 'sharedInstanceWithToken' of undefined HOT 1
- MIX_PANEL.showInAppMessageIfAvailable() throws "Unhandled promise rejection", ReferenceError : Can't find variable: token HOT 13
- Calling .reset() forcibly re-identifies the user causing issues with identity merge HOT 2
- iOS build fails for fresh React Native 0.63 project
- Mixpanel.people.set HOT 1
- Android: Notifications with deeplinks doesn't open targetted view HOT 3
- Not able to receive push notifications after upgrading Mixpanel Android SDK to 5.8.5 HOT 3
- Method setAppSessionPropertiesIOS is not exposed. HOT 1
- mixpanel crash on Adnroid after the latest release 1.2.4
- davodesign84 / react-native-mixpanel is not working fine.
- Does this library implementation requires iOS App tracking transparency permission? HOT 4
- Multiple push providers
- Crash when opening app HOT 3
- Ignore params on init Instance.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-mixpanel.