title: Delay Google Cloud Function
body: <p>I have a swift iPhone application paired with Google Firebase. Within the application the user will complete an action (press a button). At this point, I would like to schedule a Google Firebase Function to run 45 minutes after the user action. However, I would like this function to be able to be cancelled when another action (press a button) is completed within the iPhone application. I could do this within swift with a timer but that wouldn't work if the user closes the application.</p>
  
  <p>I am not opposed to using a third party scheduler or something of the sorts. Any suggestion welcome.</p>
  
  <p>I have looked at the possible duplicate questions and answers (<a href="https://stackoverflow.com/questions/42790735/cloud-functions-for-firebase-trigger-on-time">Cloud Functions for Firebase trigger on time?</a>) However, most of the links in that answer are deprecated and out of date. Also, that is referring to scheduling something repeatedly. For example, every hour, once a day, etc... I am looking to schedule the job 45 minutes after trigger (user action) with the ability to cancel the job within that 45 minute window.</p>