Skip to content

Mixpanel.addPushDeviceToken ? #752

Closed
@arnaudambro

Description

@arnaudambro

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);
    }
  };

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions