title: Is there a way to set a value from first launch and use it if the app is already launched?
body: <p>I take a permission from the user only in the first launch and if s/he approve I want to do some functions. I but a boolean variable if s/he click ok the variable will be true and do the functions but my problem is when it's the second launch of the app I don't know if user was approve or not.   </p>
  
  <p>Here I check if its the first Launch </p>
  
  <pre><code>if (isFirstLaunch()){
      self.AlertOnce(Message: " hello may i use ....")
  }
  </code></pre>
  
  <p>This is the code of the alert message:</p>
  
  <pre><code>func AlertOnce (Message: String){
      let alert1 = UIAlertController(title: "أهلا بك", message: Message, preferredStyle: UIAlertController.Style.alert)
  
      alert1.addAction(UIAlertAction(title: "موافق", style: UIAlertAction.Style.default, handler: { ACTION in
          self.saveQuestion = true
          print("OK")
      }))
  
      alert1.addAction(UIAlertAction(title: "غير موافق", style: UIAlertAction.Style.destructive, handler:{ ACTION in
          self.saveQuestion = false
          print("Not OK")
      }
  
      ))
      self.present(alert1, animated: true, completion: nil)
  }
  </code></pre>
  
  <p>And this is the function:</p>
  
  <pre><code>if (saveQuestion){
      ref.child("QuestionOfUsers").childByAutoId().setValue(label1.text)
      label1.text = ""
  }
  </code></pre>