react-native-mixpanel icon indicating copy to clipboard operation
react-native-mixpanel copied to clipboard

iOS push notifications with FCM

Open sharifhh opened this issue 7 years ago • 2 comments

Hello i set my iOS notification with firebase, how can i tell mixpanel that??

It needs the iOS original token to send using APN but i dont want that.

is there a way? or i should implement two notification handlers one for android and one for ios?

sharifhh avatar May 23 '18 07:05 sharifhh

I asked Mixpanel about this 30/May/2020

Their response below. Doesn't seem possible currently

Hi @marc1111222333 , Mixpanel does not currently support sending push notifications via FCM because it generates tokens that are different from APNs. I've gone ahead and converted this question into an idea, so that we can submit a product gap on your behalf to get Firebase support for sending iOS pushes in Mixpanel. In the meantime, if you choose to setup APNs for iOS pushes, we have instructions here ( https://developer.mixpanel.com/docs/ios-push-notifications ) on how to set up APNs certificate for iOS pushes.

0hio-creator avatar Jun 02 '20 23:06 0hio-creator

If you are using react-native-firebase library, you can use it to retrieve APNS token const apnsToken = await firebase.messaging().ios.getAPNSToken(); (this is using version 5.5.7) But you still need to setup apple push certificate, as stated here: https://developer.mixpanel.com/docs/ios-push-notifications

MarcusOhman91 avatar Jun 03 '20 05:06 MarcusOhman91