Hey!
I am creating a game for android and ios, and I am using Firebase realtime data to store my save files.
Because the game has many features I didn’t want to make a network request to firebase for each action the user made, only when the user has closed the game I will then save everything in one time.
The problem I noticed is that “OnApplicationPause” will sometimes wont let the function finish, what I mean by that is the data is sometimes being saved normally to firebase but sometimes it will not save anything and when I printed a debug.log in the event I noticed it will not print the last debug.logs, so it means that androiod/ios will kill the process and wont let it finish. This is a huge problem for me and I wanted to know if anyone here found a way to make this work?
(I tried to use OnApplicationQuit but this is not called at all in android)
Thanks for any help!