Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Firebase Database loads local copy of database instead of server version

Discussion in 'Formats & External Tools' started by ColonelKurt, Aug 17, 2021.

  1. ColonelKurt

    ColonelKurt

    Joined:
    Jun 15, 2020
    Posts:
    17
    Hey, everyone! I have this issue, for some reason Firebase Database in Editor loads data from the local copy of database instead of server, but on Android build everything works fine and it loads data from the server. But at the same time Firebase Database in Editor updates/sends data on server as well, so it shouldn't be internet connection issue. Did anyone have this problem? Would be very appreciated if anyone can help.

    I use Unity 2019.4.16f and only this line to initialize Firebase:
    gameDatabase = FirebaseDatabase.DefaultInstance.RootReference;

    And database URL is listed in google-services.json.
     
    Last edited: Aug 17, 2021