I'm starting to use firebase cloud messaging for my current app in order to send a notification. The only problem is, the message is triggered from an element inside the app. If an individual would want to trigger a notification programmatically, how would they do it (still using fcm) in swift?
I would just use a local notification, but, I've already gone through the hell of setting up fcm already. (Plus, all my user data is in Firebase)
EDIT I've found out that Firebase Cloud Messaging has a function called FIRMessaging.messaging.sendMessage(message: message, to: , withMessageID, timeToLive)
I understand how this would work, but... I don't understand what it means by 'to' and 'withMessageID'. Could someone please explain this?