Open ikhattab opened 4 years ago
Hey @ikhattab, I experienced something similar and managed to fix it. More details here: https://github.com/davodesign84/react-native-mixpanel/issues/229
As @SMJ93 mention his part of code works. Still those are missing parts:
import io.invertase.firebase.messaging.RNFirebaseMessagingService;
insert import io.invertase.firebase.messaging.ReactNativeFirebaseMessagingService;
<service android:name=".PushNotificationService">
<intent-filter>
<action android:name="com.google.firebase.MESSAGING_EVENT"/>
</intent-filter>
</service>
ic_notification
icon to drawable
folderintent.putExtra("mp_color", "#00FFFFFF")
in PushNotificationService
Thanks folks for your help totally appreciated 👍
Hello,
I'm using firebase with MixPanel to manage push notification on Android, I made all configuration and all is working, I can receive a notification on android but it's always comes with the default Android icon (grey circle one) I tried to set different one like so:
to check if my configuration is correct I sent a notification from firebase and the icon I set in
AndroidManifest.xml
was shown correctly, so it seems it has something to do with MixPanel.I have a setup where I'm using product flavor and I followed what's in documentation to set the Resource package name
but still, icon not showing, any clue what I've missed here?