davide-scalzo / react-native-mixpanel

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

Mixpanel Init (sharedInstanceWithToken) with launchOptions #164

Open bastiDomi opened 5 years ago

bastiDomi commented 5 years ago

Hi, right now, you can only initialize a Mixpanel Instance with the Token. If you want to track the App Open Event, when a user opens a push notification, you need to pass the delegate launchOptions to the Initialization of the Mixpanel Instance. https://help.mixpanel.com/hc/en-us/articles/115004617706-How-do-I-track-push-notification-open-rate-

Right now, the Bridge does not support this. Am I missing something or is there a reason the bridge does not support this?

UberMC commented 5 years ago

@bastiDomi you find a solution here? I'm unable to track when a user opens a push notification. and found this pattern in the codebase as well and am left confused.