cancel
Showing results for 
Search instead for 
Did you mean: 

Application.Quit() causes crashing on next app launch

Weitin
Level 4
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 3

SlashAndBurn
Level 2
I also noticed this quirk, will try

MikeF
Level 10
very helpful, thanks!

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

laszlo_leber
Level 4

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! 🙂