Alternative to OnApplicationPause()?

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()?

Try OnApplicationFocus instead