I am trying to use FIRMessaging to send message from device to device. Using the instruction:
[[FIRMessaging message]sendMessage:(nonnull NSDictionary *)message
to:(nonnull NSString *)receiver
withMessageID:(nonnull NSString *)messageID
timeToLive:(int64_t)tel;
where message is a Dictionary with values: to, subject, body. In to I have put de Firebase the FCM serverID: AIz...5itA@@gcm.googleapis.com, messageID is a construct of user-UID and timespan and finally timeToLive is 2400.
When running my code and sending the message, FIRMessaging Delegate comes back with sendDataMessageSuccess. BUT, the message was never received by the corresponding iOS Device.
Does anyone has got this to work and if so how?