title: Send Firebase Cloud Message programmatically?
body: <p>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?</p>
  
  <p>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)</p>
  
  <p><strong>EDIT</strong> I've found out that Firebase Cloud Messaging has a function called FIRMessaging.messaging.sendMessage(message: message, to: , withMessageID, timeToLive)</p>
  
  <p>I understand how this would work, but... I don't understand what it means by 'to' and 'withMessageID'. Could someone please explain this?</p>