- Home /
OnApplicationPause & OnApplicationFocus
Hi,
The two methods mentioned above, when running on android, built with unity 5.0.4 are called only after the application regains focus. OnApplicationPause - once with true and once with false OnApplicationFocus - once with false and once with true Anyone managed to get this to work properly on android?
Answer by altamir_benkenstein · Nov 11, 2016 at 11:30 PM
Hi, On Android, when the on-screen keyboard is enabled, it causes a OnApplicationFocus( false ) event. Additionally, if you press Home at the moment the keyboard is enabled, the OnApplicationFocus() event is not called, but OnApplicationPause() is called instead.
I use it to save data because if Android needs a resource it can kill your App.
Your answer
Follow this Question
Related Questions
problem with checking application states on android and windows 0 Answers
onApplicationPause / Focus not executing the full command | Mobile 0 Answers
Android - OnPause() and OnResume() not working with OnApplicationFocus or OnApplicationPause? 1 Answer