Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mixpanel.addPushDeviceToken ? #752

Closed
arnaudambro opened this issue Aug 17, 2021 · 0 comments
Closed

Mixpanel.addPushDeviceToken ? #752

arnaudambro opened this issue Aug 17, 2021 · 0 comments

Comments

@arnaudambro
Copy link

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);
    }
  };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant