davide-scalzo / react-native-mixpanel

A React Native wrapper for Mixpanel tracking
MIT License
455 stars 195 forks source link

addPushDeviceToken fails on Android (Windows 10) - TypeError: undefined is not a function (evaluating 'RNMixpanel.addPushDeviceToken(token, this.apiToken)')] #186

Closed dancherb closed 5 years ago

dancherb commented 5 years ago

addPushDeviceToken fails (even after having called sharedInstanceWithToken and identify) on Android. Any ideas?

{ [TypeError: undefined is not a function (evaluating 'RNMixpanel.addPushDeviceToken(token, this.apiToken)')]
  line: 96785,
  column: 45,
  sourceURL: 'http://10.0.2.2:8081/index.delta?platform=android&dev=true&minify=false' }

Thanks!

dancherb commented 5 years ago

Mixed up the specific functions for Android and iOS!