Retrieve data from new Firebase

前端 未结 9 2829
醉梦人生
醉梦人生 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: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!

提交回复
热议问题