Search Unity

Alternative to OnApplicationPause()?

Discussion in 'iOS and tvOS' started by waldgeist, Jul 26, 2019.

  1. waldgeist

    waldgeist

    Joined:
    May 6, 2017
    Posts:
    388
    We've noticed that OnApplicationPause() does *not* work if you set "Behaviour in Background" to Custom (which we need for other purposes).

    It would be very useful, though, to be able to detect that the app went into the background. OnApplicationFocus() does not work in our use-case, because it is triggered too often (on Android, it is triggered if the keyboard gets the focus).

    Is there any other alternative to OnApplicationPause()?
     
  2. wwu39

    wwu39

    Joined:
    Nov 21, 2018
    Posts:
    28
    Try OnApplicationFocus instead