Please help. After migrating to new Firebase I can\'t retrieve data. Use this construction:
let ref = FIRDatabase.database().reference()
override func viewDidL
I was getting this error until I made FIRApp.configure()
the first line in the AppDelegate
didFinishLaunchingWithOptions
Make sure you have downloaded the GoogleService-Info.plist
file from your Firebase console and added to the root of your project directory.
Once you have added it call this function from didFinishLaunchingWithOptions
in AppDelegate:
FIRApp.configure()
Thats it, it should be up and running!
Had the same problem today, you need the "firebase_url": "https://xxxxxxxxxx.firebaseio.com" at google-services.json and for that do this steps https://support.google.com/firebase/answer/7015592#android If you had one file from google cloud platform before, maybe there are some differences and you have to check. For me this works.