I install Firebase in my iOS app. Everything works fine on simulator but on real device it doesn't execute / return a query to my database.
I try to clean the project but it doesn't change anything.
Have you 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)
}
}