unity setup firebase FCM and facebook for android

227 views
Skip to first unread message

gaming Mohammed Asaad

unread,
Jan 21, 2018, 11:05:29 AM1/21/18
to Firebase Google Group
Salam,

i have tried the messaging app from quickstart-unity-master and it was working fine on it's own but when i have added the Facebook plugin the following happened ,

the firebase FCM is initializing successfully but i am no longer receiving the OnMessageReceived and OnTokenReceived

it is probably something have to do with the "com.google.firebase.MessagingUnityPlayerActivity" activity not receiving the events,  but i am not sure what is wrong since the Android manifest  it is still the same after adding facebook 

attached the android manifest ,
and i am using facebook 7.10.1

appreciate your help


AndroidManifest.xml

Stewart Miles

unread,
Jan 22, 2018, 6:25:29 PM1/22/18
to Firebase Google Group
https://firebase.google.com/docs/cloud-messaging/unity/client#configuring_an_android_entry_point_activity describes how to deal with the entry point.  It looks like you're using our default activity (com.google.firebase.MessagingUnityPlayerActivity) so that looks ok.

I'm wondering whether the merged manifest is still including com.google.firebase.messaging.cpp.ListenerService ? 

After building (if you're building in Unity) you could compare the Temp/StagingArea/AndroidManifest.xml with the working manifest to see if there are any discrepancies.  I've attached a merged Android Manifest from a working Firebase Messaging project built with Unity 2017.3 for reference.

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/5454b9db-eacb-40ca-a6eb-44a3d2d80ecb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

AndroidManifest.xml
Reply all
Reply to author
Forward
0 new messages