sceneWillEnterForeground called when app terminates

135 Views Asked by At

I'm updating a Firebase database variable in sceneWillEnterForeground, and for some reason it the update gets triggered not only when the app goes to foreground, but also when I quit the app, It doesn't get triggered when I go to background. How is this possible?

I'm 100% sure it's sceneWillEnterForeground that's causing the Firebase database to update, I'm not calling the update from anywhere else in the code.

0

There are 0 best solutions below