Mixpanel.addPushDeviceToken ?
Closed this issue · 0 comments
arnaudambro commented
The migration from https://github.com/davodesign84/react-native-mixpanel is not so intuitive, and I have hard time making it with the current documentation to be honest
I struggle with the push tokens, I know Mixpanel eventually will stop the notifications service, but meanwhile, we still need it.
Is there an equivalent of Mixpanel.addPushDeviceToken
?
saveToken = (pushToken) => {
if (Platform.OS === 'ios') {
Mixpanel.addPushDeviceToken(pushToken);
}
if (Platform.OS === 'android') {
Mixpanel.initPushHandling('An Id Number');
Mixpanel.setPushRegistrationId(pushToken);
}
};