Please help. After migrating to new Firebase I can\'t retrieve data. Use this construction:
let ref = FIRDatabase.database().reference() override func viewDidL
Make sure you have downloaded the GoogleService-Info.plist file from your Firebase console and added to the root of your project directory.
GoogleService-Info.plist
Once you have added it call this function from didFinishLaunchingWithOptions in AppDelegate:
didFinishLaunchingWithOptions
FIRApp.configure()
Thats it, it should be up and running!