I am installing Firebase in my iOS application. Everything works fine on the simulator, but on a real device it does not execute / does not return a query to my database.
I am trying to clean up a project, but nothing changes.
Do you have a solution?
EDIT: update with code
override func viewDidLoad() { super.viewDidLoad() // Setup Firebase self.ref = FIRDatabase.database().reference() self.ref.child("Database").observeEventType(.Value, withBlock: { (snapshot) in if snapshot.exists() { for rest in snapshot.children.allObjects as! [FIRDataSnapshot] { print(rest.value) } } else { } }) { (error) in print(error.localizedDescription) } }
source share