I am working on a prototype of a social media app. I imported my Unity Firebase packages from here: https://developers.google.com/unity/archive (put them in a folder then Add Package from tarball in Package manager and selecting the .tgz files) and I am also on 2020.3.15f2.
It being a kind of a social media app, the Database demand for data (chats, messages etc) and files (for profile pictures) is pretty high. I use CheckAndFixDependenciesAsync() every scene and it still crashes at times.
If something isn't loaded properly in the current scene, the next Scene change that leads to a data demand will crash the app and my unity app. It also happens a lot more in my Unity app than when i test it on my phone.
And i thought- maybe my code isn't efficient enough.(i look in the database and at Scene load i Instantiate() message objects based on the data) but i don't think there is a better way at this level.
Other probabilities may be - slow internet, how i imported my packages and the big data demand.
Please help me if you have any ideas
↧