Retrieve data from new Firebase

前端 未结 9 2825
醉梦人生
醉梦人生 2021-02-15 23:40

Please help. After migrating to new Firebase I can\'t retrieve data. Use this construction:

let ref = FIRDatabase.database().reference()

override func viewDidL         


        
相关标签:
9条回答
  • 2021-02-16 00:36

    I was getting this error until I made FIRApp.configure() the first line in the AppDelegate didFinishLaunchingWithOptions

    0 讨论(0)
  • 2021-02-16 00:37

    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!

    0 讨论(0)
  • 2021-02-16 00:38

    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.

    0 讨论(0)
提交回复
热议问题