- Home /
Application.CancelQuit doest not work.,Application.CancelQuit doest not work
Hi guys.
I tested "Application.CancelQuit" by referring to https://docs.unity3d.com/ScriptReference/Application.CancelQuit.html.
tested at: Unity: Unity 5.4, Unity5.6, Unity2017.1 and Unity2017.4 Devices: Galaxy Tab A, Galaxy S4 and Nox (Galaxy S8) Minimum API Level: Android 4.1 (Jelly bean), Android SDK Version : 27, 28
Calling Application.CancelQuit from OnApplicationQuit did not prevent the app from shutting down
However, Update () found that the app did not quit if I repeatedly called Application.CancelQuit.
Is there any normal use?
I did not have a lot of articles on forums or issues.(Application.CancelQuit does not work)
Thank you.
Answer by ZachVille · Jan 05, 2019 at 05:50 PM
For your information, on mobile applications, you usually let the user close the application themselves and not through Application.CancelQuit.
Your answer

Follow this Question
Related Questions
Game App Crashes when Application.Quit() 0 Answers
MonoBehaviour.OnApplicationQuit() can not be called on Android or iOS devices 1 Answer
2 unity projects in one android studio 2 Answers
Image material on an object plays in Unity Editor but in Android it doesn’t 0 Answers
Count time between scene executions 1 Answer