Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
Weitin's avatar
Weitin
Protege
6 years ago

Application.Quit() causes crashing on next app launch

I think Application.Quit() on Android doesn't properly remove the app, which causes the app to crash next time you launch it. Use this instead:
System.Diagnostics.Process.GetCurrentProcess().Kill();
Just wanted to share since it's easy to overlook. Might be one of the reasons your app keeps stopping.

3 Replies

  • very helpful, thanks!

    Edit: upon testing this doesnt seem to do anything on quest

  • Weitin said:

    I think Application.Quit() on Android doesn't properly remove the app, which causes the app to crash next time you launch it. Use this instead:
    System.Diagnostics.Process.GetCurrentProcess().Kill();
    Just wanted to share since it's easy to overlook. Might be one of the reasons your app keeps stopping.


    I've just got my review and I have exactly the same problem. Thank you very much! :)