Joe Green
Joe Green

Reputation: 1

Mixpanel Device Tokens Disappearing

I've added MixPanel to my app for push notifications. When my app runs for the first time it requests permission to send notifications and assuming the user clicks "OK" the device token is passed to MixPanel and added to their profile.

In the Explore tab of MixPanel I can see the users device token.

If I create a notification and send it to that user, the device token gets erased from their profile and the notification sends to 0 users.

What have I done wrong?

Upvotes: 0

Views: 424

Answers (2)

Ponja
Ponja

Reputation: 663

I solved it by using the production certificate instead of the sandbox one

Upvotes: 1

DrMarshall
DrMarshall

Reputation: 1064

The Mixpanel push sender removes invalid tokens (standard given APNS/GCM policies about repeated attempts with invalid tokens). The most likely reason for the token to be invalid is that the tokens were not created with the push certificate you're using to send. Try re-uploading your certificate to Mixpanel.

Upvotes: 3

Related Questions