Question

Migrating to Mixpanel: do I need to use Mixpanel's Push?

  • 18 March 2019
  • 1 reply
  • 97 views

Badge

I've got an existing app that uses FCM. I'm wanting to integrate Mixpanel to send events. When I call getInstance in preparation to call trackMap, I get

java.lang.NoSuchMethodError: No virtual method getInstanceId()Lcom/google/android/gms/tasks/Task; in class Lcom/google/firebase/iid/FirebaseInstanceId; or its super classes (declaration of 'com.google.firebase.iid.FirebaseInstanceId' appears in /data/app/...)

at com.mixpanel.android.mpmetrics.MixpanelFCMMessagingService.init(MixpanelFCMMessagingService.java:117)

at com.mixpanel.android.mpmetrics.MixpanelAPI.getInstance(MixpanelAPI.java:419)

at com.mixpanel.android.mpmetrics.MixpanelAPI.getInstance(MixpanelAPI.java:365)


Does this mean Mixpanel's wanting me to migrate my FirebaseMessage code? Can I tell Mixpanel I just want to track events?



1 reply

Userlevel 2
Badge

sounds like this might be a dependency issue. Check this out: https://stackoverflow.com/questions/46040855/firebase-getinstance-always-throwing-no-virtual-method-exception

prob need to update latest versions of firebase


Reply