I'm trying to use Firebase in my iOS application. I successfully integrated it and receiving notifications from all 3 Targets (user segment, topic and single device). My question is how to know a particular notification is received from which topic?
I'm following this documentation and this github page
EDIT:
I'm testing on iOS11.2 (XCode9.2) & my response (userInfo) is:
{
aps = {
alert = test;
sound = default;
};
"gcm.message_id" = "0:1513282329413512%38894e8e28894e8e";
"gcm.n.e" = 1;
"gcm.notification.sound2" = default;
"google.c.a.c_id" = 1542306492273623048;
"google.c.a.c_l" = test;
"google.c.a.e" = 1;
"google.c.a.ts" = 1513182256;
"google.c.a.udt" = 0;
}
I'm getting gcm.message_id
but it looks like "gcm.message_id" = "0:1512894251264950%38894e8e38894e8e";
How to map this to my topic name?
Thanks.