Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unity Android task kill did not trigger OnApplicationQuit nor OnDestroy

As title, when killing app in Android using the "Running Apps", OnApplicationQuit didn't trigger as expected.

Is there any workaround for this issue ?

like image 505
hylimR Avatar asked Jul 06 '26 07:07

hylimR


1 Answers

As Ramazan linked when you kill app on running apps, the kernel destroy the app and it there is not time to unity call OnApplicationQuit

Don't forget when you open another app sometimes your app is just paused and it is not destroyed.

Take a look on this android docs:

https://developer.android.com/reference/android/app/Activity.html

like image 66
Tiago Fabre Avatar answered Jul 08 '26 20:07

Tiago Fabre



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!